Jump to content


Blocking The Bots

  • Please log in to reply
2 replies to this topic

#1 koolgirl

  • Members
  • PipPip
  • Member
  • 17 posts

Posted 16 July 2006 - 08:38 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

#2 Joe Haley

Joe Haley
  • Members
  • PipPipPip
  • Advanced Member
  • 103 posts
  • LocationCanada, eh?

Posted 16 July 2006 - 08:47 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:

#3 GingerRobot

  • Staff Alumni
  • Advanced Member
  • 4,086 posts
  • LocationUK

Posted 16 July 2006 - 09:33 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:

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users