Damn proxy site

Status
Not open for further replies.

logiik

321
Aug 7, 2006
268
6
0
So I have this proxy site that's been getting picked up by various sites in China.. it's receiving like 20,000 uniques a day for the past 4 days. Anyway, server can't handle it :[
 


It wouldn't be so bad if Chinese traffic wasn't worthless. Block the traffic from China and your problems are solved! :)
 
Do you have your own dedicated server?

If so, look in your stats and see which sites they are visiting using your proxy site, then create a website on your server and use the domain name they are visiting the most .. or just pick one at random. Upload a page with a bunch of your ads on it then start parking the domains they are visiting to the website you created on your server.

Even though you don't own these domain names when you set them up on your server it will create a DNS entry and your server will automatically check your server first and send them to the page you uploaded. You can also create a .htaccess file and insert .. "ErrorDocument 404 /" without quotes so it will catch all the traffic and send it to the homepage.

You can add a message saying this site has been blocked by our proxy .. or something along those lines if you wish. Eventually they will take the hint and move on somewhere else.

I hope the above makes sense, it's the first time I have tried to explain it to anybody.

Edit: or just take the easy road and block them..
 
Last edited:
Hot linking is a huge issue on proxy sites. The chinese like to suck major bandwidth by hot linking to (often hi-res) porn images. Place this code at the very top of your document if you are using phproxy.

HTML:
/*
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.
*/

// Change this to your domain (no 'www.')
$domain="insertyourdomain.com";      
// 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
*/
 
HAHA, I didn't even think about the porn thing. Anyway, just checked my "Latest Visitors" log and there's a bunch of porn in there. Asian porn :glowingeyes_sml:
 
Hot linking is a huge issue on proxy sites. The chinese like to suck major bandwidth by hot linking to (often hi-res) porn images. Place this code at the very top of your document if you are using phproxy.

HTML:
/*
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.
*/

// Change this to your domain (no 'www.')
$domain="insertyourdomain.com";      
// 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
*/

You do know that that prevents sites from linking to your proxy site other than the homepage? To properly prevent hotlinking and image linking you need to edit/add to phpproxy.class.php.
 
You do know that that prevents sites from linking to your proxy site other than the homepage? To properly prevent hotlinking and image linking you need to edit/add to phpproxy.class.php.

ProxyWebsite.com no longer exists? What happened?
 
Status
Not open for further replies.