[已关闭问题]
<P>这是一段PHP能够迅速提高 Alexa 排名的代码,谁能给帮忙翻译下?给.NET做网站的朋友一起共享。</P>
<P>QQ:82697180 MSN:LISHUNHU@MSN.COM</P>
<P><?<BR>//[ARC] Alexa Rank Cheater<BR>//<BR>//Author: Stephen Hill - <A href="mailto:admin@onlinehoster.com">admin@onlinehoster.com</A> - <A href="http://www.onlinehoster.com/">http://www.onlinehoster.com</A><BR>//<BR>//Date: 14th December 2005<BR>//<BR>//Description:<BR>//Increases your Alexa ranking by hitting your website through proxy servers<BR>//and emulating the use of the alexa toolbar. Alexa service thinks your<BR>//site is suddenly alot more popular and your rank goes up. Simple<BR>//<BR>//How-to:<BR>//Fill proxies.txt with as many proxy servers as you can. They should<BR>//be formatted as IP:PORT with one per line. E.g 10.0.0.1:8080<BR>//<BR>//Upload this file and proxies.txt to your webserver, visit this page<BR>//enter your url in the format of <A href="http://www.yourdomain.com/">http://www.yourdomain.com</A> and click GO.<BR>?></P>
<P><BR><?<BR>@set_time_limit(0);<BR>echo "<title>[ARC] Alexa Rank Cheater</title><BR><style type='text/css'><BR>body {<BR>background-color: black;<BR>font-family: verdana;<BR>color: white;<BR>}</P>
<P>table {<BR>border: 10px dotted white;<BR>border-width: 1px<BR>}</P>
<P></style><BR>";</P>
<P>if(!$site){<BR>echo "<BR><br /><br /><BR><center><BR><table><BR><form method='post' action='index.php'><BR><tr><BR><td>website:<input type='text' name='site' value='http://www.onlinehoster.com'></td><BR></tr><BR><tr><BR><td align='right'><input type='submit' value='GO'></td><BR></tr><BR></table><BR></center><BR>";<BR>}</P>
<P>if($site){<BR>$alexaurl = "<A href="http://209.237.237.101/data/Ae7E31+kj740Ee?cli=10&dat=snba&ver=7.0&url=$site">http://209.237.237.101/data/Ae7E31+kj740Ee?cli=10&dat=snba&ver=7.0&url=$site</A>";<BR>$rank = file_get_contents($alexaurl);<BR>preg_match_all("/REACH RANK=(.+?)\/>/is", $rank, $result);<BR>$rank = $result[1];<BR>foreach($rank as $rank){<BR>$rank = str_replace("\"", "", $rank);<BR>}</P>
<P>echo "Current rank for $site: $rank<br /><br />";</P>
<P>$handle = @fopen("proxies.txt", "r");<BR>if ($handle) {<BR> while (!feof($handle)) {<BR> $buffer = fgets($handle, 4096);<BR>$data = explode(":", $buffer);<BR>$ip = $data[0];<BR>$port = $data[1];<BR>if($ip){<BR>echo "Connecting to $ip on port $port...";<BR>flush();<BR>$ch = curl_init();<BR>curl_setopt($ch, CURLOPT_URL,$alexaurl);<BR>curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);<BR>curl_setopt($ch, CURLOPT_TIMEOUT,5); //set timeout to 2 so we dont get stuck on dead proxies<BR>curl_setopt($ch, CURLOPT_PROXY, "$ip:$port");<BR>$result = curl_exec($ch);<BR>if(!$result){<BR>echo "<font color='red'>failed</font><br />";<BR>flush();<BR>}else{<BR>ec
问题补充:
居然有字数限制,没有贴完
下载地址:http://onlinehoster.com/blog/wp-content/uploads/2006/09/alexa-rank-cheater1.zip
李顺虎
|
初学一级
|
园豆:
0
提问于:2008-03-12 10:34