My OS: Windows 7 professional 64bit
Developing Drupal 6 sites locally using XAMPP 1.7.1.

I must say first that while local server (Apache on XAMPP) was runninig, a torrent client (Bit Torrent) was running too.

I have eMule running too, but I think that is safe.

Yesterday, giving a look to some logs of my Drupal site, I saw I had a lot of log entries of "Warning" severity (referring to "Page not found" errors) where the message was "announce" and a few where was "scrape".

For all of these that I've looked at so far, when I go into the details, the location field will have a long URL starting with "http://tracker..." . These are followed by a lot of gibberish that looks like an encrypted string.

Looking for a solution in StartPage, I learned these entries ("announce" and "scrape") are related to trackers generated by Bit Torrent.

By examining logs, I discovered localhost (127.0.0.1) is accessible using two domains: "http://localhost" and "http://kat.ph" (?).

Here is the problem... where "http://kat.ph" comes from?

I opened my "hosts" file on Windows and it is not listed there. I checked "httpd-vhosts.conf" out (\xampp\apache\conf\extra\httpd-vhosts.conf), but it is not there too.

Digging more I discovered "kat.ph" is an external domain pointing to "KickassTorrents.com".

The problem is, even after uninstalling Bit Torrent, when I type "http://kat.ph" I get redirected to localhost.

Even more, If I click on a link which begins with "http://kat.ph" (i.e. "http://kat.ph/blogs") on any web page on the Internet , I am redirected to my localhost site and given that page doesn't exist on my local server, I get a "Page not found" error.

It looks like my site on localhost has been scraped, all links on the site has been rewritten to be mapping to the new (unwanted) local site.

For example: "http://localhost/user/personal-page" is also reachable by typing "http://kat.ph/user/personal-page".

How can I get rid of "http://kat.ph" pointing to 127.0.0.1? I want only "http://localhost" to be mapped to 127.0.0.1.

Is it maybe something related to ipconfig in Windows (subnet mask, default gateway, stuff like that)?

I don't know how to tweak that, I am not expert on Windows.

Thanks for your help, Francesco.

Comments

Patroclas’s picture

You may want to ask on a forum about Windows servers or the version of XAMPP you are using. I don't see anything to do with Drupal here?

phpaddicted’s picture

Thanks for your reply.

I am already following your piece of advice, but it seems I am not the only
Drupal user to have this problem, see: http://drupal.org/node/1292190
and http://drupal.org/node/1020776.

I think this issue, in some way, is Drupal related and solving it can help
others.

Eyescream’s picture

Hello, the problem is that the Italian police has 'poisoned' some dns to redirect traffic directed to kat.ph to the address 127.0.0.1
It's their method to block unexperienced users from accessing the site.

To circumvent this limitation you can add a line to the end your hosts file (in the folder C:\Windows\System32\drivers\etc) with the real ip of kat.ph :
205.204.88.154 kat.ph

Bye!