Blog for hpHosts, and whatever else I feel like writing about ....

Monday, 8 September 2008

New vURL Online updates

I've made a few more modifications to vURL Online. The main updates include the options to allow both spoofing the referer, and spoofing the country of origin.

The main reason for the latter is due to alot of malicious websites, redirecting you based on Geo-tracking (essentially, the country you are from). By selecting a different server, you can change where you appear to come from. Thus far I've only got 2 UK servers, and thanks to Tom (TeMerc Internet Countermeasures), a US server.

If you'd like to setup a mirror for me on a server in a different country (I could do with as many different countries as possible), please feel free to use the following PHP script I've written (the URL and referer parameters are required, so if you create your own, please allow for those), then send me the URL to where you've got the script (and of course, let me know which country it is in).

        $str =$_SERVER['QUERY_STRING'];
        // URL to get
        $urlStr = $getVarArray['url'];
        $urlStr = htmlspecialchars($urlStr, ENT_QUOTES);
        // Referer URL to use
        $refStr = $getVarArray['ref'];
        $refStr = htmlspecialchars($refStr, ENT_QUOTES);
        // User agent to pass
        $uaStr = $_SERVER['HTTP_USER_AGENT'];
        // Get the contents
        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL, $urlStr);
        curl_setopt($curl, CURLOPT_VERBOSE, 1);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($curl, CURLOPT_HEADER, 1);
        curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
        curl_setopt($curl, CURLOPT_REFERER, $refURL);
        curl_setopt($curl, CURLOPT_USERAGENT, $uaStr);
        $return = curl_exec($curl);
        print $return;

Visit vURL Online at:


No comments: