GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   apache and one other question (https://gfy.com/showthread.php?t=359273)

longdongsilver 09-20-2004 12:24 PM

apache and one other question
 
Hi,

novice to servers...

i need to turn off or turn down keepalives ..how to do this through telnet or ssh. Is it possible to alter the config file through ftp and where should it be on the server?


also need to ban or redirect all traffic from china without modifying any code on current live pages ..is that possible?

or do i need code on every single page?

is the an .htaccess line that can fix this ? that would be great if there was.

thanks for any help with these issues.

Babaganoosh 09-20-2004 01:03 PM

You can turn off keepalive in your httpd.conf file. That is usually in /etc/httpd/config. I wouldn't recommend editing it through FTP. Also, make SURE you back that file up BEFORE you edit it. Once you have made the newcessary changes, restart apache.

To ban .cn traffic, you can simply use .htaccess.

longdongsilver 09-20-2004 02:15 PM

thanks for the reply.

Do you know the code for the .htaccess ban/redirect for cn traffic or where i could find out the exact code i need to include.

If you don't no problem, just knowing that it is possible is great news..i'll keep searching around till i find out. These damn tgp's from china send amounts of unwanted traffic and burn up tons of bandwidth :(

thanks again.

roly 09-20-2004 02:27 PM

you can ban traffic from .cn domains with htaccess simply like armedandhammered said, but i think to ban chinese surfers (chinese ip's) you will probably need geoip module installed on your server to ban them using htaccess (unless there's another way?). go to maxmind to learn more

frish 09-20-2004 02:30 PM

ask us dude...
ICQ: 84552759

Babaganoosh 09-20-2004 03:12 PM

order allow,deny
deny from .cn
allow from all

That should block most of the traffic coming from China. I wouldn't use GeoIP unless there's good reason to do it. Doing lookups can be a pig on server resources.


All times are GMT -7. The time now is 04:09 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123