MySQL Forums
Forum List  »  Router & Proxy

can you fix my proxy script????
Posted by: Michael Iron
Date: September 13, 2011 06:15PM

I need somehow to replace the link enclosed in the script to be replaced with a new one that fetches random MICHIGAN ONLY proxies. I have NO idea how to put a new site into the code below, can someone help? part of PHP script below.



echo "<BR>Flagging: ".$_REQUEST['site']."<BR>";
$adurl = $_REQUEST['site'];
$flagurl = $spam_url;
$head = "Mozilla/5.0 (compatible; MSIE 6.0; Windows XP)";
$refurl = $_REQUEST['site'];

$attempts = 0;

// $head = getheader($refurl);



$handle = @fopen("http://www.validproxies.com/cron_jobs/proxe.txt";, "r");
if ($handle) {
while (!feof($handle)) {
$buffer = @fgets($handle, 4096);
$data = explode(":", $buffer);
$ip = $data[0];
$port = $data[1];
if($ip){


$review = $review + 1;
$attempts = $attempts + 1;
$head = getheader($refurl);
$flagurl = randomizer($spamone,$spamtwo);


// echo "Flagging on $ip via port $port...";
flush();
ob_flush();

$ch = @curl_init();
curl_setopt($ch, CURLOPT_URL,$flagurl);
curl_setopt($ch, CURLOPT_USERAGENT, $head);
curl_setopt($ch, CURLOPT_REFERER, $refurl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,3);
curl_setopt($ch, CURLOPT_TIMEOUT,2); //set timeout to 2 so we dont get stuck on dead proxies
curl_setopt($ch, CURLOPT_PROXY, "$ip:$port");
$result = @curl_exec($ch);

Options: ReplyQuote


Subject
Views
Written By
Posted
can you fix my proxy script????
2964
September 13, 2011 06:15PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.