Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <?php
  2. if (!isset($_SESSION)) {
  3. session_start();
  4. }
  5. // anti flood protection
  6. if($_SESSION['last_session_request'] > time() - 2){
  7. // users will be redirected to this page if it makes requests faster than 2 seconds
  8. header("location: http://www.crackingpro.com");
  9. exit;
  10. }
  11. $_SESSION['last_session_request'] = time();
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement