![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Aug 2003
Posts: 378
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
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.
__________________
I like pie. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Aug 2003
Posts: 378
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Aug 2002
Posts: 1,844
|
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
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Aug 2004
Location: Luxembourg
Posts: 335
|
ask us dude...
ICQ: 84552759
__________________
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
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.
__________________
I like pie. |
![]() |
![]() ![]() ![]() ![]() ![]() |