apache and one other question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • longdongsilver
    Confirmed User
    • Aug 2003
    • 378

    #1

    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
    ♥♥♥ Likes Hugs ♥♥♥
    • Nov 2001
    • 15841

    #2
    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.

    Comment

    • longdongsilver
      Confirmed User
      • Aug 2003
      • 378

      #3
      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.

      Comment

      • roly
        Confirmed User
        • Aug 2002
        • 1844

        #4
        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

        Comment

        • frish
          Confirmed User
          • Aug 2004
          • 335

          #5
          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.

          Comment

          • Babaganoosh
            ♥♥♥ Likes Hugs ♥♥♥
            • Nov 2001
            • 15841

            #6
            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.

            Comment

            Working...