For those that would like to use offer a new vURL mirror. The PHP code is;
Code:
<?php
// URL to get
$urlStr = htmlspecialchars($_GET['url'], ENT_QUOTES);
// Referer URL to use
$refURL = htmlspecialchars($_GET['ref'], ENT_QUOTES);
// User agent to pass
$uaStr = $_SERVER['HTTP_USER_AGENT'];
// Do we want the headers?
$sDispHeader = $_GET['hd'];
// *************************************
// Only grab if there's anything to grab
// *************************************
if(!empty($urlStr)){
// Get the contents
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $urlStr);
curl_setopt($curl, CURLOPT_VERBOSE, 1);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
if($sDispHeader==''){curl_setopt($curl, CURLOPT_HEADER, 1);}else{curl_setopt($curl, CURLOPT_HEADER, 0);}
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_REFERER, $refURL);
curl_setopt($curl, CURLOPT_USERAGENT, $uaStr);
$return = curl_exec($curl);
$info = curl_getinfo($curl);
// ********************************************************************************
// If the server is uncontactable or returns any HTTP status code other than 200 OK
// ********************************************************************************
if ($return === false || $info['http_code'] != 200) {
$return = "No cURL data returned for $urlStr [". $info['http_code']. "]<br><br>DATA: ".$return;
if (curl_error($curl)){
$return .= "\n". curl_error($curl);
}
}
@curl_close($curl);
print $return;
}else{
echo 'No URL specified';
}
?>
Obviously, in the above, I've put the install path as;
{root}/vurl/index.php
However, this can be anything you like - aslong as you let me know;
1. The path to the script
2. The country your server is located in
Current MirrorsI'd like to thank the following for offering mirrors for vURL;
You can test your mirror either directly via the script, for example;
Code:
http://yourwebsite.com/{url_to_script}/?url=http://somewebsite.com&ref=http://somereferer.com
Or if you are using vURL Desktop Edition, then by adding your proxy URL to the proxy_servers.txt file;
Code:
http://yourwebsite.com/{url_to_script}/?url=[URL]&ref=[REF]