Jump to content

prevent spam registrations from same ip.


newb

Recommended Posts

hi, i have a script that allows users to register an acct...

http://www.onpunbb.com/install.php

 

but what i want is to tweak it to make it something like how vbulletin or similar forum software does with preventing users from spam posting. so that it prevents them from registering until x amount of minutes has passed since their last registration to prevent duplicate / spam accounts.

 

whats the best way to implement this? if someone has a function for this pls help, thanks.

Link to comment
https://forums.phpfreaks.com/topic/167424-prevent-spam-registrations-from-same-ip/
Share on other sites

store the IP address in the account table (where the rest of the acct info is being stored), along with timestamp of registration.  When user registers, check the IP address to see if it exists, and if so, compare timestamp with current time.  This isn't really all that effective, though, as most spambots go through a proxy server to change up IP addresses.  So far the most effective means of preventing spam is by using captcha verification or creating a honeypot to catch spambots. 

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.