Author Topic: Blocking The Bots  (Read 468 times)

0 Members and 1 Guest are viewing this topic.

Offline koolgirlTopic starter

  • Irregular
  • Posts: 17
    • View Profile
Blocking The Bots
« on: July 16, 2006, 04:38:00 AM »

Hi all

I am here again with a small problem and hope this forum will help me like always. Here is my problem for this time:
I have a contact us page on my site. Anybody who want to contact us, can either send email to any of the email addresses displayed at the contact page or can simply fill up the small form and click submit. When the user submits the form, it is stored on an MySQL database. I check the contact form database directly by logging in to MySQL database and no pages are linked to this database for output. The only page that links to the database is this contact page which writes into the database. All works perfect but now I have got a problem. Some bots keep filling the form with links to porn sites and multiple times in a day I have to log in to MySQL just to delete these links.
I know I might have to use a method of verification like in some forms where the visitor have to enter the text in an image Or block the IP range(which I really won't want to do), is there any other simpler way to do this too?
My second question is that as I said before too, no page is linking to this database or table, will it really help somebody to have links to their sites in a database like this? Does the search engine robots crawl those databases too?
Many thanks in advance
 :)

Offline Joe Haley

  • Enthusiast
  • Posts: 103
  • Gender: Male
    • View Profile
Re: Blocking The Bots
« Reply #1 on: July 16, 2006, 04:47:03 AM »
Store the IPs of all people whom have recently submited a contact to you, and block them from doing so again for a day.
Give a man a fish; you have fed him for today.  Teach a man to fish; and you have fed him for a lifetime
Don't teach men to program. Teach them to fish.

Please, try the RTFM solution before asking for help:
http://php.net/manual/en/index.php

Offline GingerRobot

  • Guru
  • Fanatic
  • *
  • Posts: 4,133
  • Gender: Male
  • Call me Ben
    • View Profile
Re: Blocking The Bots
« Reply #2 on: July 16, 2006, 05:33:14 AM »
I would go for the first idea of using the image, blocking IPs is not usually a good idea. Gast posted an example of this here:
http://www.phpfreaks.com/forums/index.php/topic,100764.msg398112.html#msg398112