Jump to content

Recommended Posts

I keep getting spam on my site, I am not sure how to stop it.

 

Site: http://phpsnips.com/

 

I allow all non-members to post comments, but they have to type in a CAPTCHA from an image.

 

I allow all members to post comments, but they don't have to type in a CAPTCHA (no member spam yet).

Link to comment
https://forums.phpfreaks.com/topic/126183-spam/
Share on other sites

Either your form processing code contains a security hole and the captcha is being easily bypassed or your captcha image is easy for automated spam bots to decode (all the characters are in a nice neat line and are all the same size and orientation and the small lines used for noise are all small compared to the size of the text and they are all the same width and would be easy to mathematically remove from the image) or your form processing code is not validating what was submitted well enough to filter out posts that contain undesirable content. The best captcha in the world won't stop someone if your form processing code still allows the content that they want to post. Only allow alphabetic characters and a few punctuation marks. You could convert the code to fully moderate posts that are not from members. Don't automatically display non-member posts until they have been manually reviewed and accepted.

Link to comment
https://forums.phpfreaks.com/topic/126183-spam/#findComment-653132
Share on other sites

Your form processing code is the last link in the chain of preventing spam content. It must be the strongest link, not the weakest one, because no matter what you do to your captcha, a real person will be able to submit spam by entering the captcha phrase.

Link to comment
https://forums.phpfreaks.com/topic/126183-spam/#findComment-653444
Share on other sites

You must have missed reading these parts of the thread -

 

...or your form processing code is not validating what was submitted well enough to filter out posts that contain undesirable content. The best captcha in the world won't stop someone if your form processing code still allows the content that they want to post. Only allow alphabetic characters and a few punctuation marks. You could convert the code to fully moderate posts that are not from members. Don't automatically display non-member posts until they have been manually reviewed and accepted.

 

Your form processing code is the last link in the chain of preventing spam content. It must be the strongest link, not the weakest one, because no matter what you do to your captcha, a real person will be able to submit spam by entering the captcha phrase.

Link to comment
https://forums.phpfreaks.com/topic/126183-spam/#findComment-661271
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.