Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- PHProxy bandwidth MOD by Rhett Canney (Billy Connite)
- This MOD will stop any hotlinking via PHProxy, even if the
- clients referer is not set!
- Check out ProxyWebsite.com if you want to try hotlinking.
- */
- // Thay đổi anhhangxomonline.net thành tên miền của bạn, không có tiền tố "wwww"
- $domain="anhhangxomonline.net";
- // If no request:
- if($_GET['q']!=""){
- // 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['q']!=""){
- // Redirect to homepage and finish script
- header("Location: http://www." . $domain . "/");
- exit();
- }
- }
- }
- /*
- END MOD
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement