Jump to content

SQL Injection?


phpmady

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.