Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    TrainReq
    Guest

    PHP Flood protection

    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.

  • #2
    Regular Coder
    Join Date
    Sep 2006
    Location
    Colorado
    Posts
    132
    Thanks
    7
    Thanked 1 Time in 1 Post
    Store a timestamp in a session... Then compare the session timestamp to the current one to see if 45 seconds have gone by.
    -bubbles

  • #3
    TrainReq
    Guest
    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?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •