www.webdeveloper.com
Results 1 to 2 of 2

Thread: Word Filtering in form returns

  1. #1
    Join Date
    Nov 2005
    Location
    A Northern Soul Living nr London
    Posts
    215

    Word Filtering in form returns

    Ladies and gentlemen, boys and girls…

    I have a problem and I am looking to you to offer a script or a solution.

    I run an online registry and it is, as you might expect based around a form or two but I am getting mightly peeved by spammers.

    The problem it two fold. Firstly those who register for the site, creating a profile and then only leaving a message asking if I am happy with my genitallia or would I perhaps like to try some wonder drug to help me out?

    Secondly, the nature of my site attracts younger viewers who come upon it by mistake and I really don’t want genuine users with an otherwise legitimate post on my site using certain swear words (I don’t see this as censorship, more like good manners).

    Has anyone got any ideas on filtering a prescribed list of words out of either the form return as it enters the database or out of the database afterwards?

    the site is a PHP and MySQL based thingy... BTW Viagra anyone? (I dont need it you see...) lol

    Many thanks

    Mouse

  2. #2
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    Many BBSes have the "bad word" thingy. I've got a YaBB site that confused a user mightily when she tried to post a message about a person with the last name "****burn", which YaBB cheerfully translated to "Thingieburn" as it displayed the message.

    You can't prevent human spammers but you can foil programs by requiring the input of a few alphanumerics presented graphically on the input form.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles