For you who want to be different and want to have cool user online on your site, I found a script that can easily customized and includes the function to check your IP. Confused to understand what I meant? Go on and visit ProxyWhereabouts.com and look at its left sidebar no.3. It shows the IP of who’s online and the link to the page where people can see their IP and other details.


I put this up because there is people who seems interested to know how to create something similar to what I have on ProxyWhereabouts.com. It even been discussed on a webmaster forum. *happy*. So, Aquarezz I hope you’re happy to have this code. Only that you need to customize it to suit your need.
If you feel this script make you day, then do drop some comments below.
Downloads: 362 times | File Size: 978 KiB
You can show your support by buying me a coffeePopularity: unranked [?]
Oh, this is a continuation from the hotlinking code for CGI proxy yesterday. Like PHProxy, Glype and CGI proxy, Zelune also been considered as a popular proxy script. Thus, it also has the disadvantages of being hotlinked by other good-for-nothing webmasters. So, to prevent hotlinking on Zelune, simply open up your index.php and look for php opening tag ( Right after the tag, insert this codes.
// Change this to your domain (no ‘www.’)
$domain=”yourdomain.com”;
// If no request:
if($_GET[’__new_url’]!=””){
// Get referer
$referer=$_SERVER[”HTTP_REFERER”];
// Check to see if referer is not the proxys domain
$count=substr_count($referer,$domain);
// If there is an outside referer:
if($count==0){
// If there is a request:
if($_GET[’__new_url’]!=””){
// Redirect to homepage and finish script
header(”Location: http://www.” . $domain . “/”);
exit();
}
}
}
See? A simple solution to saves you lots of bandwidth.
You can show your support by buying me a coffeePopularity: unranked [?]