Jump to content

SPAM STOP


chriscloyd

Recommended Posts

i have a quote system and i dont want people to spam it so cna someoen help me i have the main idea i want to check ip and see if the time they entered a quote was in the last 10 minutes but i wouldnt know how about going at this and i do know php i just dont know hte best way to do it
Link to comment
https://forums.phpfreaks.com/topic/30825-spam-stop/
Share on other sites

This method uses MySQL, so if you aren't using it then it won't work:
Create the ip table with columns 'id', 'ip' and 'time'.
Everytime a quote is submitted, check to see if their IP address is in the table.
If it is, check to see when their last quote was.
If it was long enough, process the quote and update the time in the database.
If not, then tell them they have to wait to submit another quote.  You could even tell them exactly how long they need to wait.
Link to comment
https://forums.phpfreaks.com/topic/30825-spam-stop/#findComment-142173
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.