Block bad IPs --> HTTP 500 error
Posted: Sat Apr 12, 2008 2:47 am
I've had 'Block bad IPs via HTaccess' enabled, and sometime between the last time I checked my blog and today, it blew out apache's ability to parse it.
On hitting the blog, I got the dreaded http-500 error. In the logs, I read, "[date] [alert] [client xx.xx.xx.xx] /blah/.htaccess: Invalid command '.30.221.139,205.234.98.22,...', perhaps mis-spelled or defined by a module not included in the server configuration
On checking .htaccess, I found something like this:
#SPAMDENY
Deny From 64.40.144.156,91.201.192.46,..... [long, long line],77.239.234.60
#/SPAMDENY
.30.221.139,205.234.98.22,....
#/SPAMDENY
Something tells me you need to program that to read, "Deny From" every time you linebreak. But I'm just a caveman. Your new ways confuse me.
Still, something is deeply broken. Please fix it.
On hitting the blog, I got the dreaded http-500 error. In the logs, I read, "[date] [alert] [client xx.xx.xx.xx] /blah/.htaccess: Invalid command '.30.221.139,205.234.98.22,...', perhaps mis-spelled or defined by a module not included in the server configuration
On checking .htaccess, I found something like this:
#SPAMDENY
Deny From 64.40.144.156,91.201.192.46,..... [long, long line],77.239.234.60
#/SPAMDENY
.30.221.139,205.234.98.22,....
#/SPAMDENY
Something tells me you need to program that to read, "Deny From" every time you linebreak. But I'm just a caveman. Your new ways confuse me.
Still, something is deeply broken. Please fix it.