Check Referer to force login


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $pos = strpos($_SERVER['HTTP_REFERER'],'solventinteractive.com');
  2. if ($pos === false ) {
  3. header ( "Location: http://www.solventinteractive.com/login.php" );
  4. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.