Check Website
Inclusion Status
It is currently Tue Nov 12, 2019 11:18 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: [INFO] vURL proxy mirrors
PostPosted: Sat Sep 13, 2008 2:42 pm 
Offline
Site Admin

Joined: Thu May 28, 2009 10:25 am
Posts: 6018
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 Mirrors

I'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]

_________________
Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!


Last edited by MysteryFCM on Fri Dec 04, 2009 11:20 pm, edited 2 times in total.
Added new mirror and replaced code with newest update



IP:
top
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
hpHosts and hpHosts Online are copyright © Malwarebytes Corp - All Rights Reserved

Powered by phpBB © 2000-2009 phpBB Group