We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Kërkoni te Asistenca

Shmangni karremëzime gjoja asistence. S’do t’ju kërkojmë kurrë të bëni një thirrje apo të dërgoni tekst te një numër telefoni, apo të na jepni të dhëna personale. Ju lutemi, raportoni veprimtari të dyshimtë duke përdorur mundësinë “Raportoni Abuzim”.

Mësoni Më Tepër

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

  • 2 përgjigje
  • 313 e kanë hasur këtë problem
  • 3 parje
  • Përgjigjja më e re nga 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?

Krejt Përgjigjet (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...)