Forum Moderators: phranque
Anyway, the spam is for the usual viagra, diet drugs etc.
I seriously doubt that it is a DOS attack, just a nuisance.
Common items-
- The first field is called name and usually has buy___
- Other fields are full of random letters
- Email is random letters at yahoo.uk address
- IP is from RIPE in the Netherlands
- The comments field has a bunch of links to mostly pharmaceutical sites.
Has anyone else seen a surge in commet form spam like this?
I'm probably going to
1. Block the ip range that I'm seeing the spam from
2. If that doesn't work, I'll try changing the name of the contact form.
thanks
cg
Changing the script name lasts for about five minutes. Banning through .htaccess works, but it's a long and arduous maintenance task as you will see - once you plug one IP or entire range, another whole list of them will appear. Eventually you wind up banning IP's you don't really want to (i.e., many of these attacks come from compromised machines of ordinary users.)
One easy trick that will stop them is to create a hidden field in your form.
<input type="hidden" name="some-enticing-fieldname" value="">
If this field is populated, stop the script immediately. Only a bot will populate hidden fields in your forms.
For extended methods see the above link - most important of which is log ALL data input from your forms.