How To Stop Spam Robots From Submitting Forms Preventing Spamming PHP

Mobile
feeds
Welcome Login | Register

How To Stop Spam Robots From Submitting Forms Preventing Spamming PHP
Reply Your Comments:
Click this button if you are interested in replying to this topic and leave your comments
Sent To Friend
CLick this button if you want to send this page to a friend.
Subsribe To Rss Feeds
Subscribe to RSS
CLick this button if you want to subscribe to this RSS Feed. You can use your browsers feeds burners if you have mozilla or internet explorer 7 or higher and keep up with updates.
  Forums Index
      » Scripts Forums
        » » How To Stop Spam Robots From Submitting Forms Preventing Spamming PHP
How To Stop Spam Robots From Submitting Forms Preventing Spamming PHP
Post Description: how to stop spam robots from submitting forms preventing spamming php Scripts
Post Tags:
This Post Has Been Viewed 3406 Times Since Wed Jan 03, 2007 2:16 pm Author wallpaperlinks with 5 replies
How To Stop Spam Robots From Submitting Forms Preventing Spamming PHP
Advertise On This Page




I have a customer who has a contact us form. Everyday he gets like 10 contact us submissions from abviously spam robots because the information he gets is a bunch of html links with the <a href tag.

He asked for my help on how to stop this.

One way to stop it by puttin a captcha in your forms.

What is captcha? CAPTCHA stands for:

completely automated public Turing test to tell computers and humans apart,
CAPTCHAs are used to prevent bots from using various types of computing services or collecting certain types of sensitive information. Applications include preventing bots from taking part in online polls, registering for free email accounts (which may then be used to send spam) and collecting email addresses. CAPTCHAs can prevent bot-generated spam by requiring that the (unrecognized) sender pass a CAPTCHA test before the email message is delivered, but the technology can also be exploited by spammers by impeding OCR detection of spam in images attached to email messages. CAPTCHAs have also been used to prevent people from using bots to assist with massive downloading of content from multimedia websites. They are used in online message boards and blog comments to prevent bots from posting spam links as a comment or message.

basically you can us CAPTCHA by putting a confirmation on the form, kinda like a picture or an image with numbers and letters and the user has to eneter the number of letter on the image, then validate the information, if it matches with what's in the image, the the form is approved, otherwise, it fails back to the user. and in most cases, it will fail back to the spambot.

my suggestiong to our customer was to use the ege() function in their PHP form. In his case, if any information in the form had the character "<", the form would fail


     Code:
ereg('<', $form_info )


after we implemted the ereg() function, he stopped getting those fake contact us.


Leave Your Comments

Your Name
Your Email Address (Will Not Be Published)
Notify Me When Someone Replies to this Page
(An email will be sent to you when someone replies to your comments)
Your Comments
Include A Picture with your comments
Share
| More
Share this page by putting this URL in your comments to other websites like myspace, Facebook, Twitter friendster, Hi5, Groups, Boards, Forum or others. Just Copy and Paste this Code
URL:
To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
Embed:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
BBCODE:
Subscribe Feeds
Webmasters - Exchange Links With Us. Add related websites to this topic
Add Link:
Links Related to : How To Stop Spam Robots From Submitting Forms Preventing Spamming PHP

Comments and replies About How To Stop Spam Robots From Submitting Forms Preventing Spamming PHP
:: 1 :: Reply #214 Reply By chaps On Tue Feb 06, 2007 4:18 pm
chaps:
another way to stop robots from spaming your webstie by submitting automatically your web forms is to put an image so that the user can enter. this is the best way to avoid spaming on your web site.
:: 2 :: Reply #1857 Reply By brother On Thu Apr 26, 2007 12:42 pm
brother:
If you can't put an image, the easiest thing you can do is to put a question. something like this:

question: what is 2 + 2

answer: 4

so put a text field to receive the correct answer and if the wrong answer if given, then reject the form.
:: 3 :: Reply #41170 Reply By alicia On Thu Feb 14, 2008 1:10 pm
alicia:
my number scheme is 123 456 789 0
:: 4 :: Reply #71337 Reply By administrator On Sat Sep 20, 2008 3:34 pm
administrator:
im the administrator, and we use chaptcha images to stop.

next, im going to try javascript to see if that works.

so instead of putting the form in html, i will put it in javascript.

i will post the results to see what happens
:: 5 :: Reply #125700 Reply By Mike On Fri Jan 08, 2010 5:40 am
Mike:
according php.net, this function has been deprecated as of php 5.3.0 and removed as of php 6.0.0. relying on this feature [ereg()] is highly discouraged.