Forum Moderators: open
[edited by: encyclo at 2:01 pm (utc) on Aug. 7, 2006]
[edit reason]
[1][edit reason] no personal URLs please, see forum charter [/edit] [/edit][/1]
Multiple IP's, I've just disabled the form results right now and I'm collecting IP addresses and will use .htaccess to deny them once I see they gone through their whole list.
The sites being listed are all .de sites, so that gives me a little bit of a clue where it's coming from.
Thanks
First as has been mentioned they are not attacking the form. Once they figure out where the form posts to, they are only attacking that processor, so anything you do to the form will not help.
Chasing IP's won't help a lot, as those are likely compromised computers or servers. What you want to be sure of is that this type of attack is not one as described in the above link. If it is, the email you actually receive is the least of your worries.
Once you insure against the possibility your processor is being abused as in the above link, you can use whatever language it's in to loop through IP addresses and die immediately if any are in your "ban list." I usually do the ban list as a set of wildcard lists, because it's usually a range of IP addresses and as you say, they change frequently. I'm sure these guys have a list of available "zombies."
After a while they give up and don't return, they'll only keep hitting you if you can be exploited. Then you can remove the IP's from the ban list, and allow any legitimate emails from that set of IP's to come through. I know this requires diligent maintenance but at this point I think it's necessary as the IP is the only identifying factor.
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
Yes, that really does say 'User-Agent' inside the user agent! And is googlebot really trying to submit my forms? Admittedly this is from a guestbook script, but similar idea.
Also, the way the form has been filled in. ie. Entering exactly the same text in 2 or more fields, where it really wouldn't make sense is a sure sign of a robot. Also checking for URLs having been entered in fields, if not allowed.
Are you using POST or GET for your forms?
1) if you have some sort of Cpanel in your webhost package, there should be an option to IP Deny (or ban) a particular IP from not accessing the whole site. That is not only the form but your whole site is blocked for this fellow
2) Alternatively, edit the file .htaccess (if you dont have it, create it with a text editor)This is found in the root folder of your website. Most websites have it, but if you dont see it you have to create it. Then this is a special comman to deny the IP from your whole website
I cant remeber excactly the code/command you have to write but I am sure you find yourreply if you google it (eg search ".htaccess deny IP")
hope it helps