Okay, Ive made this script for people who use proxies in school and dont want the school to know what the site is all about.
It was inspired by Dentafrice, who originally used it for his proxy, so ive decided to make my own version of it.
Basically, The use must refresh the page 4 times to get onto the actual proxy. If the user has not refreshed the page, it will show up a message of your choice.
Code:
Its just a simple script and simply include it in every page you wish to protect in this way.PHP Code:<?php
ob_start();
/*
CONFIG
*/
$message = "Sorry, This website is not currently open!"; #Message to show to users who havent refreshed.
/*
DONT EDIT BELOW
*/
if($_COOKIE["refresh"]!=3)
{
if(isset($_COOKIE["refresh"]))
{
$ref_value = $_COOKE["refresh"] + 1;
setcookie("refresh",$ref_value,time()+3600);
die("$message");
}
else
{
setcookie("refresh","1",time()+3600);
die("$message");
}
}
?>
Hope you enjoy
Havent tested for errors yet, so if anybody finds any, just tell me
Moved by Agesilaus (Forum Moderator) from Design and Development: Please post in the correct forum next time.![]()






Reply With Quote






I never had a proxy although I did write a small script in Danny's post that seemed a little easier to use 
