WordPress.org

Support

Support » How-To and Troubleshooting » How to disable logging of an htacces event ?

How to disable logging of an htacces event ?

  • Hello,

    I’m contacting you to ask if you think there exists a way to avoid the logging of 403 bans based on our blog’s .htaccess file ?

    Because of problematic activity from certain people, I’ve had to ban a large IP range with an htaccess rule :

    ErrorDocument 403 http://www.redirectionwebsite.com
    <Limit GET HEAD POST>
    order allow,deny
    deny from ...

    (and the list of IP ranges is very, VERY long)

    However, less than 24 hours later, I find my site has been slowed down and it’s already burdened by a 400 MB large log file just for today’s logged events, almost entirely made of banning observations.

    I’m on a shared host, so I cannot modify Apache’s own configuration, it has to be done from within the .htaccess file. So far, the best I could find was how to un-log my OWN IP’s activities ¬_¬

    So,

      please, I would really like to know : is there a way to disable logging of 403 bans ?


    Please, would you know ?

    Thank you VERY MUCH if you can help !

    Sabinou

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    @macmanx

    I can be done, but not via WordPress. That needs to be configured in Apache at the server level.

    Damn it, that means it can’t be done with my shared hosting 🙁

    Well, thank you for the reply, though, Macmanx ! 🙂

    I hope I’m not abusing your time in asking this, but do you think 301 redirections would generate the same logging usage, or could they be smoother server-side ?

    Moderator James Huff

    @macmanx

    Most hosting providers don’t have Apache configured to log 301 redirects in the error log. They will be logged in the access log and reflected in server-site stats programs, but probably not in the error log.

    So, it would still be logged, but in another file.

    This is troublesome, such a level of logging is slowing my website. Well, I’ll ask my host, I have nothing to lose !

    Thanks for the replies once again, Macmanx 🙂

    Moderator James Huff

    @macmanx

    Logs shouldn’t be slowing down your site. The access log stores every single request, it’s literally a log of your server’s activity. Now think of all those huge sites out there, like google.com or wordpress.org and how much log activity they must have.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to disable logging of an htacces event ?’ is closed to new replies.
Skip to toolbar