- Impact
- 9
I have noticed recently that my proxy has been getting a huge amount of visitors on proxified pages, compared to the homepage. This seems to be ebcause somehow websites are referring users direct to them, I've got referral blocks enabled, but they somehow get past this. So this is something which I just came up with, for PHProxy (thats all i've tested on, should work with others)
A short explanation of what it does is above, you just need to replace the homepage of your proxy in the script (currently set to websitebypass.info). I've only just created this, and put it up on my proxy, and it seems to be working, although I think it's a bit buggy, so feedback is apreciated!
Thanks,
Lee
PHP:
<?php
/*
Creator: Lee Findlow
Website: http://lee.findlow.info/
Proxy Referral Script
Stop hidden referrers from accesing your website
Variable that will be present if accesing a proxified page, change if necessary
Install by placing at top of index.php file (PHProxy).
It works by detecting if the person accessing a proxified page has been to the home, page, if so a session variable is set, and it allows them to continue,
otherwise they will be redirected "back home".
*/
$var = $_GET['q'];
//Start Session
session_start();
//Check if the user needs to be redirected
if(!empty($var) && $_SESSION['visited'] == ''){
//Set visited to true
$_SESSION['visited'] = 'true';
//Redirect home
header('Location: http://websitebypass.info/');
exit;
} else{
//Otherwise user has accessed the homepage, so allow them access to prixified pages
$_SESSION['visited'] = 'true';
}
?>
Thanks,
Lee