Jump to content

spam


fullyloaded

Recommended Posts

The best way I can see doing this is to use a mysql database, and when someone submits, record thier IP address as well as a timestamp and then in your form script, get the ip, and do a query to see if that IP is already in the database, if so, get the timestamp, then compare recorded timestamp with the current timestamp

[code]$now=time();[/code]

and if the difference is > 60 (seconds) allow them to post again. if not then echo disabled in your button's tag to disable it.
Link to comment
https://forums.phpfreaks.com/topic/32806-spam/#findComment-152784
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.