Jump to content

Recommended Posts

FYI, this isn't an SQL injection attack. This sounds like plain old comment spam.

 

There are several techniques you can use to limit the amount of spam you get. For more information on some of the techniques, check out:

http://webaim.org/blog/spam_free_accessible_forms/

Link to comment
https://forums.phpfreaks.com/topic/202975-sql-injection/#findComment-1063648
Share on other sites

A simple cURL script can post data to forms. It is actually absurdly easy. The reCaptcha solution is what you want to look into. This should stop most bots from spamming, but humans will still be able to spam at will.

 

As cyberRobot said, this is just spam, not injection.

Link to comment
https://forums.phpfreaks.com/topic/202975-sql-injection/#findComment-1063674
Share on other sites

It's quite possible that the spammers screen scraped your form and are just sending junk via their own script. One way to prevent this (most of the time it works) is to put a hidden field in your form with a name that spammers would pick up on, something like "url" (if you're not using a name like that now) and leave the value blank. The spammers, not knowing that the value is supposed to be blank, with fill it with something, your processing script should then reject any post that has that field filled in.

 

Ken

Link to comment
https://forums.phpfreaks.com/topic/202975-sql-injection/#findComment-1063681
Share on other sites

thanks kenrbnsn and presto, its really nice to  get inputs from you regarding the forms security, i mean captcha code, mysql_real_escape_string, and making the dummy variable to check.

 

vow everything is worthy i belive so

 

In my case, i believe spam is made, and not injection as you guys are said.

 

Thank you very much

Link to comment
https://forums.phpfreaks.com/topic/202975-sql-injection/#findComment-1063687
Share on other sites

Using mysql_real_escape_string will not prevent spam, it will only keep the nefarious people from harming your database. Using a captcha and/or dummy variables will help. Checking the referer to see if the posted data is coming from your form will also help. Also, since you are allowing people to post URLs, you probably want to implement an approval system where no comment is shown until you have approved it.

 

Ken

Link to comment
https://forums.phpfreaks.com/topic/202975-sql-injection/#findComment-1064108
Share on other sites

 

Will not stop the massive SPAM

 

 

I don't think that will stop any spam, that code is meant to help prevent SQL injections.

 

Hi,

 

yes you are right, now i have implemented captcha code, so i will be escape from spam i belive so

 

Thanks

 

 

Link to comment
https://forums.phpfreaks.com/topic/202975-sql-injection/#findComment-1064146
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.