Vista IP Blocking II: uTorrent

Seeing as how quite a few people found the previous article on a PeerGuardian alternative in vista useful, I decided to adapt the tutorial to fit a client that is used a little more frequently – uTorrent.

Those of you still interested in making this work in Azureus, you can read my previous article. As for anyone who is wondering on how to block IP addresses without using PeerGuardian in uTorrent, here it is (also, I assume you already have installed uTorrent at this point):

  • Open up uTorrent and head over to Options -> Preferences on the menu bar. Click on Advanced and search for ipfilter.enable – make sure that it is set to true (it should be by default). Close uTorrent.
  • Go ahead and open up Blocklist Manager:

blocklist-manager-main

  • Click on the Sources button. It should download the latest available source file locations (not the actual IP lists themselves, as they will come later).

BlockList Manager Sources Download

  • Now go to Tools->Options (Ctrl+O). Head on into the Sources option on the left. You should see something like this:

BlockList Manager Sources

  • Enable all the sources as you see fit. Just remember, this blog is on an Edu Range Wink
  • Now, head back to the main screen of Blocklist Manager and go to Export -> Export Manager in the menu bar.

Export Manager Blocklist Manager

Set the following fields:

Name: Whatever best fits
Format: eMule/Donk
Location: XP - C:\Documents and Settings\<USERNAME>\Application Data\uTorrent\ipfilter.dat
Vista – C:\Users\<USERNAME>\AppData\Roaming\uTorrent\ipfilter.dat
Export Location Active: Checked

And click Add

Now, go back to the main screen of Blocklist Manager and click Process. This will automatically download all the sources and compile a list of IP addresses which now need to be put somewhere. At this point, make sure that uTorrent is fully closed (out of the taskbar). Click Export List to export the IP addresses to the blocklist file. It may ask you if you want to overwrite the previous file – say yes.

You will also want to keep up to date with your IP listings; make sure you process and export the list from Blocklist Manager weekly or monthly (or daily if you are absolutely paranoid). The sources themselves are rarely updated, but it is nice to check by just clicking on the Sources button. Other than that, happy IP blocking!

49 Responses to “Vista IP Blocking II: uTorrent”

  1. If I do all this… I don’t need PeerGuardian?

  2. Dose this stop my isp from finding out if im downloading ? Please reply back

  3. If I add ip’s to ipfilter.dat will utorrent block all ports or only p2p traffic ? I want to add a range to utorrent and have every port blocked like pg2 did.

  4. Only p2p traffic for this method (or more precisely, just every port that uTorrent is using)…although I’m sure you could achieve blocking all ports by adding the IP definitions to some kind of firewall, but I can’t exactly answer which one would suit best at the moment.

    -Alex

  5. In version 2.7.7, the only thing resembling
    “Export Location Archive: Checked”
    is
    “Export Location Active: Checked”
    (note active vs archive)

    Nice tutotial, BTW – thanks!

    BTW&FWIW, I’ve followed these instructions (with the exception of checking “Active” rather than “Archive”) and, as Im running XP I can run both utorrent with lists enabled and peerguardian2 – looking to see what pg2 stops that these lists don’t.

    Yes, I realize that it’s simply a “what ip range is in which list” issue – but it’s not at all clear (at least not to me) that the lists come from exactly the same places. Anyone know about this?

    If anyone else wants to do this (probably a decent idea as anything I find is probably colored by the fact that I try to avoid RIAA/MPAA stuff – and that’s what MediaSentry is trying to grab(?)).
    Anyway, if you do, remember that PG2 is working as a firewall, so inbound connections will be intercepted/logged _before_ they get to utorrent. So just look at the blocked outbound connection history.

  6. I forgot to mention: if you’re using PG2, there’s recently been an issue with it blocking *zero* sites and not warning you. So, even if you’ve got PG2, you *want* a blocklist in utorrent as well. Belt and suspenders and all that…

  7. Many thanks!

  8. thanks mate! worked like a charm…

  9. any way to se what that has been blocked? like the list in peerguardian!

  10. Unfortunately you can only load the IP filter into uTorrent, you can’t actually see which ones get blocked as they come in.

    -Alex

  11. it says bluetack list is empty

  12. Depending on the list, it might just be a temporary issue with bluetacks servers. Try again in a bit.

    -Alex

  13. ok, heres a end-all-be-all (for now) for blocking in vista.

    make a .bat file and copy the following code: (between the lines)
    ____________________________________________

    @echo off
    if exist ipfilter.dat copy ipfilter.dat ipfilter.bak > nul
    if exist ipfilter.dat del ipfilter.dat
    wget.exe -r –tries=3 http://emulepawcio.sourceforge.net/nieuwe_site/Ipfilter_fakes/ipfilter.dat -O ipfilter.dat

    ____________________________________________

    save the bat file. Now, place that .bat file in (vista location only) [replace XXXX with you ruser name]:

    C:\Users\XXXX\AppData\Roaming\uTorrent\

    after that, make a shortcut to that bat file on your desktop, and occasionally update your ipfilter file.

    PRESTO.

  14. Yeah, that works too. The only two things I see wrong with it, though:

    1) If the URL for the file changes, you’ll be screwed and you won’t even know it as you’ll write the information from a 404 page into your ipfilter.dat file (which will pretty much block nothing). The blocklist manager avoids this problem by letting you update your sources list which updates the URLs for you if they ever get moved around.

    2) You need to have wget installed on your system for this to work. wget, while a default package on many linux systems, is not included in any Windows OS by default (unless you got your Microsoft product from a “third party”). Here’s the URL for that tool: http://www.gnu.org/software/wget/.

    Again, I recommend the blocklist manager just because it is more flexible, and it is updated with URL’s and such better. You don’t have to keep track of URL’s; it does it for you.

    -Alex

  15. Thanks for this man, is there a way to get a global list of movie/recors studio and gov ip ranges to add to the list?

  16. how will we know if its working???

  17. Check under the log tab. uTorrent should mention something about loading in a blocklist file and then say how many IP addy’s it’s blocking. If it’s anything over 0, you’re in good shape (more realistically, it’ll be more than 100k give or take some number I can’t remember). Like said before, it won’t keep a log file of IP’s that it is actively blocking, but it’ll block them regardless.

    -Alex

  18. Is it possible to import the Peerguardian lists to blocklist manager and then convert them also in the ipfilter.dat ? Or is this totally unnecessary?

    thanks :)

  19. Yeah, its possible… but I don’t see why you’d want to. Peerguardian’s lists are identical to that of the Blocklist Manager (they both use the ones provided by bluetack’s servers). You’d essentially just be merging identical lists into each other, which just wastes time in the long run.

    -Alex

  20. I followed all the directions and for vista entered
    C:\Users\\AppData\Roaming\uTorrent\ipfilter.dat with my user name. But when I tried to export list it said that there was an error. What should I do?

    Thanks

  21. Without knowing the error message, I can’t really help too much. You might also want to search the bluetack forums, since they are more knowledgeable to the inner workings of the program:

    http://www.bluetack.co.uk/forums/index.php?showforum=53

    Alex

  22. Thanks for the tutorial! I had just about given up on ever figuring out Blocklist Manager.

  23. I had the same problem as hannah. I can’t figure it out tho. need help.
    here’s the error message:
    Ready.
    Writing to C:\Users\\AppData\Roaming\uTorrent\ipfilter.dat
    :: Error in WriteFile: Bad file name or number, file=C:\Users\\AppData\Roaming\uTorrent\ipfilter.dat
    Ready.

  24. Make sure you have write access to that file. Check to see if it exists, if yes, make sure you are running blocklist manager as an Administrator just to be sure.

    Alex

  25. I checked and it doesn’t exist XD? kinda new to this

  26. so how do i get this to work? and I know this is a stupid question but I can’t find the answer anywhere, does this block isp’s like peergaurdian

  27. So you have to find out where your uTorrent data is being stored. Open up explorer and type in “%APPDATA%” without the quotes. This will bring you into a directory which should have a folder called uTorrent – open that up. Take note of the location in which you are in – this will be the path that you will need to enter into Blocklist Manager (in place of c:\users\etc…).

    Block ISP’s? Er, not really ISP’s; more like corporations. Like peerguardian? Very similar, but with the distinction that it will only work for uTorrent, not for the whole system.

    Alex

  28. Thank You for the help but I unfortunatly can not find it anywhere to be honest >..<

  29. had more to that message o.O

  30. ok found it thnx ^_^

  31. uo and working againg thanks alot, and wonderful tutorial

  32. Very good tutorial, thanks a lot.

  33. I know that this has been asked already, but exactly, how do you know that this is working? In utorrent, I found a “Logger” tab but all it say is:

    [2009-06-17 22:25:45] IPv6 is installed
    [2009-06-10 09:17:02] ***12 Rounds: PIECE 903 FAILED HASH CHECK

    Am I looking in the wrong place?

    Thanks for all this info by the way!
    ;-)

  34. Means its not working; unless you see specifically a line that says “Loaded ipfilter.dat (XXXXX entries)”, then it means you did something wrong.

    Alex

  35. I know that this is stupid, but I really cannot find this path:

    C:\Users\\AppData\Roaming\uTorrent\ipfilter.dat

    I get all the way to \torrent but there is no ipfilter.dat. I did what you said about putting ““%APPDATA%” without the quotes” in Explorer but I don’t see “ipfilter.dat”. I uninstalled utorrent and redownloaded it and it still is not there. I am guessing that if I do not have the ipfilter.dat file that I cannot direct Blocklist Manager. I can see the following .dat files:

    dht.dat
    dht.dat.old
    resume.dat
    resume.dat.old
    rss.dat
    rss.dat.old
    settings.dat
    settings.dat.old

    Any ideas?

  36. It doesn’t have to exist; blocklist manager will make it for you. You just have to specify that location (including the file) when you set up blocklist manager (in the export section). Once you update your blocklists and export, you should see the file in that directory. And %APPDATA% will bring you to all the application data (C:\Users\YourUser\AppData), so you’d still need to go into the uTorrent folder – but it looks to me like you have it already.

    Alex

  37. I don’t know what I did different, but it now says:

    [2009-06-19 17:32:56] Loaded ipfilter.dat (323165 entries)

    Thanks for all your help!!!

    :-D

  38. Hi, why is there a trojan when im downloading the blocklist manager?

  39. Blocklist Manager doesn’t contain trojans. Your antivirus must be giving a false positive (in that case, try using a better antivirus product like Symantec if you want to go corporate all over the place or avast if you want something free).

    Alex

  40. Does this work in Vista x64?

  41. uTorrent is 32-bit and so is Blocklist Manager. If uTorrent will run on your computer, so will Blocklist Manager.

    Alex

  42. i am getting some errors when i run the blocklist manager wondering if you could help? usually looking start something like this:

    ::Error with blah blah (file name)

    i can get the actual code for you if you need it.

  43. why aren’t my web pages loading help!!! oh uploaded to ie 8 before this fix not sure if this has anything to do with it.

  44. Am I the only one who noticed?
    C:\Users\\AppData\Roaming\uTorrent\ipfilter.dat probably doesn’t work because there are TWO(2) \\ after the word Users..try putting your username between them!! i.e.:
    C:\Users\Fred\AppData\Roaming\uTorrent\ipfilter.dat

    Signed
    Old DOS man!!!

  45. :: Error occurred while requesting URL. The page may not currently be available.
    :: Error in DecodeFormat: File Line#: 1, Line Contents:
    :: http://www.bluetack.co.uk/config/edu.zip is empty.
    :: Processing cancelled.

    BLM Version: 2.7.7
    Finished Time: 9/1/2009 8:52:09 PM
    Total Lines Read: 9335
    Lines Ignored: 3
    Lines Added: 0
    Dupes Merged: 0
    Merged Ranges: 0
    Split Ranges: 0
    Sources Processed: 4
    Process Time: 0.46 seconds.
    Download Time: 21.28 seconds.
    Total Time: 21.73 seconds.
    Rules Added: 9332
    Rules Per Second: 20496.38
    :: Error Count: 3
    Ready.

    thats what came up after hitting “process”

    well i went ahead and hit “export list” anyways then i got…

    Writing to C:\Users\\AppData\Roaming\uTorrent\ipfilter.dat
    :: Error in WriteFile: Bad file name or number, file=C:\Users\\AppData\Roaming\uTorrent\ipfilter.dat

    What does all this mean? and how to fix it?

  46. Look at Fred-0’s comment. The one right above you.

    Alex

  47. To those who want to see, which IP’s uTorrent blocks in real-time…
    1. Go to the “Logger” tab in the main screen of uTorrent.
    2. Right below the “Logger” tab you will see the informational field, which might (or might not) have wording similar to this:
    [2009-10-30 19:32:17] IPv6 is installed
    [2009-10-30 19:32:17] Got Teredo Address:
    3. Just right-click anywhere in that field with your mouse and select “Peer Traffic Logging” -> “Log blocked connections”.
    4. Watch blocked by uTorrent IP addresses popping up time to time. Enjoy!

    P.S. Here’s the screenshot of what needs to be clicked as described above: http://img24.imageshack.us/img24/3505/utorrentar.jpg

  48. \Hi, why is there a trojan when im downloading the blocklist manager?\

    AV programs are picking up the portscanner thats with the file u download giving a false positive

Leave a Reply