Block bad IPs --> HTTP 500 error

Found a bug? Tell us!!
Post Reply
wcw
Regular
Posts: 7
Joined: Wed Apr 04, 2007 12:33 am

Block bad IPs --> HTTP 500 error

Post by wcw »

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.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Thanks for the error report. We'd love to look into it and fix it. Which version of Serendipity are you using? Can you upgrade to 1.3, in case we've fixed it already? The Spam Protector plugin gets updated more frequently than some others as we attempt to keep ahead of the evil.

Meanwhile, you can manually clean the lines by breaking at reasonable
locations. You can even remove all the IPs and let s9y start over again.
Judebert
---
Website | Wishlist | PayPal
Post Reply