|
|
![]() |
|
|
Top | #1 |
|
Bow Down to the King
Joined: April 2002
Location: New York
Posts: 13,312
Reputation: 4090
Power: 297 |
I have attached a screen capture so you can see the spam. Does anyone have any suggestions to prevent this from happening? Thank you. |
|
|
|
|
|
Top | #2 |
|
Secret Goat Fetish
Joined: June 2002
Location: Dorset, England Posts: More Than You
Posts: 9,602
Reputation: 3548
Power: 253 |
|
|
|
|
|
|
Top | #3 |
|
Bow Down to the King
Joined: April 2002
Location: New York
Posts: 13,312
Reputation: 4090
Power: 297 |
It may come down to that unless there are any other suggestions.
|
|
|
|
|
|
Top | #4 |
|
Godlike!
Joined: February 2004
Location: Salisbury, Wiltshire, UK
Posts: 7,031
Blog Entries: 5
Reputation: 4137
Power: 213 |
Captcha.
|
|
|
|
|
|
Top | #5 |
|
OSNN Veteran Addict
Joined: March 2002
Location: United Kingdom
Posts: 7,805
Reputation: 1490
Power: 217 |
http://recaptcha.net/ or else run everything through a spam filter like http://akismet.com/
|
|
|
|
|
|
Top | #6 |
|
█▄█ ▀█▄ █
Joined: April 2005
Location: Massachusetts
Posts: 16,949
Reputation: 4941
Power: 305 |
Yeah, captcha. I'd be interested in how else it could be done though. I'm developing something offline for now which will be using a captcha but honestly I think it's fugly
I would prefer something more hidden.
|
|
|
|
|
|
Top | #7 |
|
Godlike!
Joined: February 2004
Location: Salisbury, Wiltshire, UK
Posts: 7,031
Blog Entries: 5
Reputation: 4137
Power: 213 |
remove the submit form button
![]() No forms. No spam. |
|
|
|
|
|
Top | #8 |
|
Bow Down to the King
Joined: April 2002
Location: New York
Posts: 13,312
Reputation: 4090
Power: 297 |
Winner of the best suggestion yet award. K? THX.
|
|
|
|
|
|
Top | #9 |
|
OSNN Veteran Addict
Joined: March 2002
Location: United Kingdom
Posts: 7,805
Reputation: 1490
Power: 217 |
theres a lot to be said for the old "read-only" web
|
|
|
|
|
|
Top | #10 |
|
Bow Down to the King
Joined: April 2002
Location: New York
Posts: 13,312
Reputation: 4090
Power: 297 |
So I disabled the form and the client is still complaining. It became obvious that the spammers are calling the action file. But, that makes me wonder how are they injecting information into it without filling out the form?
Hopefully that makes sense. |
|
|
|
|
|
Top | #11 |
|
OSNN Veteran Addict
Joined: March 2002
Location: United Kingdom
Posts: 7,805
Reputation: 1490
Power: 217 |
Well thats simple, if they've looked at the form then they know the form field names. Once they've got that why do they need to write something to fill in your form first, they can just send an HTTP POST request with the required form field data. This is how a regular browser works, the only purpose of the form is for the human to provide values for the form fields the user agent needs to send to the form action.
|
|
|
|
|
|
Top | #12 |
|
Bow Down to the King
Joined: April 2002
Location: New York
Posts: 13,312
Reputation: 4090
Power: 297 |
So how do we prevent this from happening?
|
|
|
|
|
|
Top | #13 |
|
Godlike!
Joined: February 2004
Location: Salisbury, Wiltshire, UK
Posts: 7,031
Blog Entries: 5
Reputation: 4137
Power: 213 |
blacklist the IP(s) spamming.
|
|
|
|
|
|
Top | #14 |
|
*
Joined: December 2001
Location: USA
Posts: 6,496
Reputation: 2808
Power: 220 |
or Captcha.
You can even do what speedy_b does, and that is give them a math problem to solve. |
|
|
|
|
|
Top | #15 |
|
OSNN Veteran Addict
Joined: March 2002
Location: United Kingdom
Posts: 7,805
Reputation: 1490
Power: 217 |
remove the action file? If you still need the form to work you will have to use either captcha or some spam filtering rules/service
|
|
|
|
|
|
Top | #16 |
|
Carbon based lifeform
Joined: February 2004
Location: SoCal
Posts: 3,406
Reputation: 2305
Power: 158 |
can you put in a javascript function to display the field?
|
|
|
|
|
|
Top | #17 |
|
OSNN Veteran Addict
Joined: March 2002
Location: United Kingdom
Posts: 7,805
Reputation: 1490
Power: 217 |
Not terribly nice for people with JS turned off, while their numbers are declining they are still there.
Matt can you generate a unique token for each user session and maybe put that in a hidden field in the form and then check for its presence in the action file. That should at least stop casual POST'ing to the action file without first hitting up the form. The token could be generated from the session key but should not actually be the session key, the reason is they could make one hit to your site, trap the key and the start POST'ing to the form action again. It should also be temporal but be determinable for a set period of time. If they don't submit the form within say 5 minutes it should reject the request. Dunno if you use Rails at all, but the protect_from_forgery setting does a lot of this for you. |
|
|
|
|
|
Top | #18 |
|
OSNN One Post Wonder
Joined: November 2004
Posts: 1
Reputation: 0
Power: 0 |
About 95% of casual web surfers have JavaScript enabled in their browsers. Simple message asking to enable JavaScript for the page showed for remaining 5% is much better than annoying all your visitors every time they visit your site (or even page) by need of recognizing captcha images, answering anti-bot questions, solving brainteasers, etc.
There are automated solutions which can obfuscate HTML code and make it totally unreadable for spambots, except only those, which executes every JavaScript on the page, what is still computationally ineffective, especially in the age of so called "Web 2.0". I am developing one of such solutions, Web Form Anti-Spam, so if anyone will ever be interested in my recommendations, feel free to contact me directly - I would like to avoid being called "forum spammer" here. ![]() One of the simpliest methods to stop spam bots, is to rename fields to less obvious names and place hidden fields with old, frequently used names, like "email", "phone", "message", etc. For example: ... <input type="text" name="i13kfsl" value="" /> <input type="text" name="email" value="" style="display:none" /> ... When processing form data by server script, ensure that "email" value is still empty and accept "i13kfsl" field value as e-mail address typed by visitor. This measure is helpful because spambots are trying to fill all fields they see, especially with frequently used names. style="display:none" is simple method of hiding the bot-catching field. You can use different styles to achieve that effect, by making it zero-height, or positioning it absolutely at some negative position. Keeping hiding style in external css file will hide the style itself - spambots are not so smart to read, parse and interpret styles to find all catches. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HTML Forms | omg its nlm | Web Design & Coding | 2 | October 19th, 2004 3:18pm |
| Forms and Javascript help | AcftMecH | Web Design & Coding | 2 | January 18th, 2004 10:19am |
| Creating Forms in Front Page | gmagnuson | Web Design & Coding | 9 | November 16th, 2003 2:09pm |
| Forms in CSS | Tabula Rasa | Web Design & Coding | 6 | December 31st, 2002 11:21am |
| Forms / Select / Help needed :) | SPeedY_B | Web Design & Coding | 5 | October 22nd, 2002 3:16am |