StirolXXX Posted August 21, 2007 Report Posted August 21, 2007 I changed my trackers announce url, and want to redirect utorrent clients to another url.I made a sample code (PHP):header("HTTP/1.0 302 OK");header("Location: http://bt.mysite.com/announce.php\");die;But, when this is happening: utorrent does not append the GET parameters. I must redirect it by myself with all the parameters? BTW: this could be used against cheating
dAbReAkA Posted August 22, 2007 Report Posted August 22, 2007 get the parameters manually and append them to the announce url
system Posted August 22, 2007 Report Posted August 22, 2007 You don't need the header("HTTP/1.0 302 OK");The location header will handle it for you.Apart from that, all you need is this:$getstr='';foreach($_GET as $x=>$y) $getstr.='&'.urlencode($x).'='.urlencode($y);$getstr=substr($getstr,1);header('Location: http://site.com/announce2.php?'.$getstr);exit();I don't see how it could be used against cheats though.Most cheats are either using uTorrent itself and modifying details, or using an http library which will follow redirects anyway. Only extremely primitive cheats will fail to follow the redirect. Even using the old firefox URL cheat will follow the redirect.
StirolXXX Posted August 22, 2007 Author Report Posted August 22, 2007 Even using the old firefox URL cheat will follow the redirect.That i will cut... But some of cheaters will go back...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.