UHits – PHP proxy hits generator
This scripts uses free proxies to generate fake hits to specified website.
Script Files
- proxy.txt – is a text file containing all proxy information
- proxy.php – does all the work of generating scripts
Both files need to be saved in the same directory on your server.
proxy.txt
Create a text file called proxy.txt and add one proxy address with port number per line:
207.156.32.23:80 203.156.35.123:8080 154.166.32.23:444
Make sure to save this file in the same directory as proxy.php. Script is ran using Cron-jobs, so you’ll need to know how to set one up on your server.
proxy.php
//Let's make sure no warrnings are displayed by PHP
error_reporting(0);
// Specify url that shoud receive hits
// make sure to include trailing slash "/" at the end of folders
$url_1 = "http://www.yourdomain.com/";
// Specify your server and port
$myserver = "yourdomain.com:80";
// Specify how many hits to receive every time the script is run
// Selecting more then 5 may not work
$randnr = 2;
//read proxy file
$proxies = file("proxy.txt");
//now we will get a random proxy address from the proxies.txt file
$getrand = array_rand($proxies, $randnr);
for($x=0;$x<$randnr; $x++){
//setting time limit to zero will ensure the script doesn't get timed out
set_time_limit(0);
//now we will separate proxy address from the port
$PROXY_URL=$proxies[$getrand[$x]];
$proxyarr = explode(":", $PROXY_URL);
$address = trim($proxyarr[0]);
$port = trim($proxyarr[1]);
//following code generates the header file
$headerinfo =array(
'User-Agent' => 'UHits/1.0 ('.$myserver.')',
'Accept' => 'image/gif, image/x-xbitmap, image/jpeg, image/png, */*',
'Pragma' => 'no-cache',
'Connection' => 'keep-alive');
reset($headerinfo);
//now we are ready to reach our website through the proxy
$fp=fsockopen($address,$port);
if($fp) {
fputs($fp,"GET $url_1 HTTP/1.1rn");
fputs($fp,"Host: $myserverrn");
reset($headerinfo);
while(list($header,$value)=each($headerinfo)) {
fputs($fp,"$header: $valuern");
//let's give the script some time to execute
sleep(2);
} //end while
fputs($fp,"rn");
fclose($fp);
} //end if
} //end for
Cron Job
Using cron jobs you can set up the script to execute every hour or minute or every 3 minutes. Here are some cron job examples.
GET http://yourdomain.com/proxy.php> /dev/null
or
wget -q http://yourdomain.com/proxy.php> /dev/null

carla
me did not work. can you help please
wedding planner india
your
proxy php is good.
Gunnar
Thanks !!!
Nadia
Ok, I´ll try it out,
Regards,
Nadia,
Jessica
Thank you for the scripts !!!!
Jess.
Show IP
Code not working. Can someone help?
Bharath
/*
$curl = curl_init();
$timeout = 30;
$proxies = file(“proxy.txt”);
// Not more than 2 at a time
for($x=0;$x<2; $x++){
//setting time limit to zero will ensure the script doesn't get timed out
set_time_limit(0);
//now we will separate proxy address from the port
$PROXY_URL=$proxies[$getrand[$x]];
echo $proxies[$x];
curl_setopt($curl, CURLOPT_URL, "http://proxy.in/hits.php");
curl_setopt($curl , CURLOPT_PROXY , $proxies[$x]);
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5");
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($curl, CURLOPT_REFERER, "http://google.com/");
$text = curl_exec($curl);
echo "Hit Generated :”.$x.”";
}
*/
Working good use this
Levi
What type of program do I use to make this script work? I am using cygwin but its not working
pcmags
file permission shoul be 777?
Online Movies Database
this should work very nice. Could you please provide more accurate instruction on how to create the cronjob also?
Thank you very much for this php file.
Free Stream Movies Online
doesn`t work on my end…can anyone please tell how to have it set up?
pleaseeeeee