Jump to content

How to redirect uTorrent via HTTP headers?


Recommended Posts

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


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

Link to comment
Share on other sites

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:


foreach($_GET as $x=>$y)



header('Location: http://site.com/announce2.php?'.$getstr);


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.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...