chriscloyd Posted December 16, 2006 Share Posted December 16, 2006 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 More sharing options...
emehrkay Posted December 16, 2006 Share Posted December 16, 2006 use a capchahttp://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=xq2&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=php+captcha&spell=1 Link to comment https://forums.phpfreaks.com/topic/30825-spam-stop/#findComment-142169 Share on other sites More sharing options...
Cagecrawler Posted December 16, 2006 Share Posted December 16, 2006 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.