Jump to content

How to make my guestbook avoid being spammed ?


tmyonline

Recommended Posts

Dear all:

 

I created a guestbook for my charity in order to get people's feedback.  Unfortunately, since the day I launched it, someone kept coming back to our guestbook and entered nasty materials for the purpose of advertisement of sexual services.  No matter how many times I deleted such nasty comments, I kept getting different messages each time but the idea and purpose are the same.  I'm wondering if my guestbook URL has been used for automatic submission of such ads.  I was thinking about changing my guestbook URL but I'm not sure if this helps.  Any suggestions?  Thanks.

Link to comment
Share on other sites

if the inputed data is stored on your database and you are using $POST form you could get their ip address then do :

 

IF "this ip" then

exit

 

in logical terms.. to get their ip i believe you use :

 

$ip = $_SERVER["REMOTE_ADDR"];

 

then do a check on your table for that ip on any inputted text get the row and auto delete that text with the ip. Though more logical to "hide" cos some people have same ip so you might delete a valid shout & block the ip as mentioned above can be a possibility.

Also just to add you could add a method that all shout outs have to be verified by staff before showing up on the page. this would stop people seeing the adverts in the first place.

 

Link to comment
Share on other sites

Bots have gotten smart enough to look for textarea form fields, and try submitting spam to them. So now, even on software you write, you susceptible to comment spam.

 

The best thing you can do is just put a "Are you human?" style question on the form. If you try to use a CAPTCHA library someone else wrote, your site's protection will fall once the CAPTCHA library has been circumvented (which they seem to be at an alarming rate). Not to mention it's much more annoying than a simple text question.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.