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);