Short (tldr):
There is a feature behaviour in Firefox: Domain Guessing.
To disable this, there is an about:config entry named browser.fixup.alternate.enabled but setting this option to false does not stop it from working. This seems to be a bug. But to prevent this, you may use another bug. Just set "network.proxy.socks_remote_dns" to "true" to stop domain guessing!
https://bugzilla.mozilla.org/show_bug.cgi?id=567070
Details:
There is a feature behaviour in Firefox: domain guessing.
This works like this: If you enter "google" in the address bar, it tries to connect "www.google.com"
This is done via adding a prefix (ie. "www.") and a suffix (ie. ".com") to the string you just typed in as an address.
But this also has a bad affect about local addresses. For example, your computer's name is "cagricelebi" and you have a server locally running 127.0.0.1 (there is no place like home) you need to go "http://cagricelebi/" and to do this, you simply write "cagricelebi" on the address bar in Firefox. But this feature does a redirection "www.cagricelebi.com", which is not the place I needed to go (: Another example; you may also be in a company network, and this domain guessing feature prevents you from accessing other people's hosts via computer names.
Like this, as you enter "localhost" in the address bar, it tries to connect
www.localhost.com
Bad, isn't it?
On forums (and everywhere around) there is a suggestion to prevent this: Setting the about:config parameter named "browser.fixup.alternate.enabled" to "false". But that seems to be broken. No matter what I set this value (either true or false) my browser tries to add the prefix and suffix to url: "domatesdomates" is always redirected to www.domatesdomates.com sadly...
Furthermore there are other parameters while using domain guessing:
browser.fixup.alternate.prefix = www.
browser.fixup.alternate.suffix = .com
But these are used when you use Ctrl+Enter shortcut. For example you set the suffix as ".wordpress.com" and you enter "localhost" and press ctrl+enter; you are sent to http://www.localhost.wordpress.com . Interesting behaviour. This may be a bug also.
Finally, after searching bugzilla.mozilla.org, I found a bug related to this,
https://bugzilla.mozilla.org/show_bug.cgi?id=567070
And yes, that bug can be a fix to that domain guessing bug.
There is an about:config entry named "network.proxy.socks_remote_dns" and settings this to "true" is overrides "browser.fixup.alternate.enabled" and stops this from working.
If you set "network.proxy.socks_remote_dns" to "true", henceworth the names you enter address bar (ie. localhost) does not go to the http://www.localhost.com/ and just connected as http://localhost/.
I hope this helps.
No comments:
Post a Comment