views:

64

answers:

3

I am not too familiar with how spambots work.

I had a thought on stopping spambots and would like to know if it will work or not.

When a user registers, instead of sending a comfirmation email to their email address, user would be shown a link right after the form is completed. User must click on the link to complete registration.

Now, i ask if this may not work because I don't know if spambots follow links after submitting a form.

If they do indeed follow links after a form, what about inserting the link into the DOM dynamically via jquery or so, so the uri would never be in the DOM and, ideally, the bot would not be able to follow it.

Thank you.

+1  A: 

I would assume that if someone really wanted to mess with your site, they could build a bot to follow that link.

Furthermore, googlebot works by following links to help it index the entire internet, so it is 100% possible that a robot could be programmed to use a link like that.

As for using jQuery or any kind of JS, it might slow them down, but if someone really wants to get into your site, they will find a way past it.

Implementing something alone the lines of http://recaptcha.net/ might be more worth your time in securing your website from robots.

Scott S.
+1  A: 

No matter what you do, if your site or software is popular enough, someone will eventually write a spambot that will know how to exploit it. Furthermore, they may just get real humans to register, and then use those accounts for spamming later.

Brian Campbell
+1  A: 

The suggestion to dynamically alter the DOM is clever, because it effectively makes the "screen-scraping" task harder. However, most modern spambots and more generally crawlers have started to embed javascript interpreters and other modules from normal web browsers, lest they'd start being unable to read pages with all the dynamic changes (ajax, jquery-type rewriting and such) that is now commonplace on many sites.

As suggested in other responses, it is difficult to prevent very motivated parties to automate application access, one can only hope to "slow them down".

mjv