...

View Full Version : PHP Flood protection



TrainReq
01-03-2007, 10:40 AM
I have some PHP functions (most of the functions dump stuff into the mysql database) .... I would like for it to have flood protection to where it wont do the functions if an IP has been there 45 or less seconds ago.

bubbles19518
01-03-2007, 04:42 PM
Store a timestamp in a session... Then compare the session timestamp to the current one to see if 45 seconds have gone by.

TrainReq
01-03-2007, 08:02 PM
how do I do it... and i dont want to do it for everyone... (like it can get seperate hits from other people .. but it can only get one hit every 45 seconds per person... what is the code for that?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum