How to disable logging of an htacces event ? (6 posts)

  1. sabinou
    Posted 6 years ago #


    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 ¬_¬


      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 !


  2. James Huff
    Support Representative
    Posted 6 years ago #

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

  3. sabinou
    Posted 6 years ago #

    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 ?

  4. James Huff
    Support Representative
    Posted 6 years ago #

    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.

  5. sabinou
    Posted 6 years ago #

    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 :)

  6. James Huff
    Support Representative
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic