Dette websted vil have begrænset funktionalitet, mens vi gennemgår vedligeholdelse for at forbedre din oplevelse. Hvis en artikel ikke løser dit problem, og du vil stille et spørgsmål, har vi vores supportfællesskab, der venter på at hjælpe dig på @FirefoxSupport på Twitter og/r/firefox på Reddit.

Søg i Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Læs mere

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

  • 2 svar
  • 313 har dette problem
  • 3 visninger
  • Seneste svar af 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?

Alle svar (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...)