Forum Moderators: phranque

Message Too Old, No Replies

htaccess blocks ip's, but create huge error logs

         

Doood

8:07 pm on May 23, 2006 (gmt 0)

10+ Year Member



I need to stop error logging of blocked ip's.

My script auto blocks ip's thru htaccess with more than 100 visits and/or more than 20 clicks per minute.

It's only a few per day but the blocked ip's keep try several times a second for hours and fills up my error_log which creates huge loads and slows everything down.

Is there a way to not show these errors in the servers error_log?

Example of each error.....
[Sun May 21 08:20:10 2006] [error] [client 12.34.56.789] client denied by server configuration: /home/virtual/site12/fst/var/www/html/dir/page.htm, referer: http://google.com/search?q=cache:o5jwuLGm3_MJ:some-big-long-funky-url

[edited by: jdMorgan at 9:12 pm (utc) on May 23, 2006]
[edit reason] fixed referer formatting problem. [/edit]

jdMorgan

9:13 pm on May 23, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you have server configuration priveleges (access to httpd.conf, conf.d, etc.) you can use a combination of mod_setenvif and mod_log_config to disable logging under specified circumstances. I don't know of any way to do it without config access.

Jim