搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Firefox keeps attempting to download .php files from websites which are blocked with a hosts redirect.

  • 2 个回答
  • 313 人有此问题
  • 3 次查看
  • 最后回复者为 garfolino

more options

I configured the /etc/hosts file on a number of machines for a client to redirect facebook and myspace to localhost. Ever since, Firefox attempts to download a php file if one exists on a webpage which is hosted on those sites. For example, attempting to visit npr.org/music causes likebox.php to attempt to be downloaded from facebook.com.

The strange thing is that this isn't happening on every machine, but I can't find anything that's related. Same versions of the OS (10.6.4), same versions of Firefox (3.6.8). I tried deleting profiles, cookies, caches, and the mimetypes.rdf file, all with no luck. The firewall is off.

Any thoughts?

I configured the /etc/hosts file on a number of machines for a client to redirect facebook and myspace to localhost. Ever since, Firefox attempts to download a php file if one exists on a webpage which is hosted on those sites. For example, attempting to visit npr.org/music causes likebox.php to attempt to be downloaded from facebook.com. The strange thing is that this isn't happening on every machine, but I can't find anything that's related. Same versions of the OS (10.6.4), same versions of Firefox (3.6.8). I tried deleting profiles, cookies, caches, and the mimetypes.rdf file, all with no luck. The firewall is off. Any thoughts?

所有回复 (2)

more options

same problem

more options

I found a solution for my case.

First, the problem was happening in only one of my computers... I have a Macbook white running Lion latest version and also Firefox 8.0.1 (latest version when I post this)... And on my Macbook Pro, i have the same stuff...

I blocked www.facebook.com by redirecting it to 127.0.0.1 as usual, and as another sites like twitter and such...

I just decided to change 127.0.0.1 to Google's IP Address... So if i go to www.firefox.com it opens Google, but also if any webpage has those Facebook Like buttons, it doesn't load nor try to load it anyway! So case solved! (With a workaround, but still...)