Geek Alert
Anyone ever see a situation that no matter what you try, a domain answers in a browser even though you point the domain to the local host in your hosts file?
A few weeks ago I was doing some testing on a site on test server on my local lan and since I set the site up on a FQDN I needed the host file entry to point at the 192.168.1.x ip until my testing was done.
Well I discovered this did not work (in firefox) although it worked in other browsers.
this bothered me on many fronts.
#1 If I type a domain wrong, I wanna see the 404
#2 If I happen to have dns wrong for a domain (and my dns is authoritative) I most certainly want the 404 so I can fix a dns entry mistake.
#3 If I am doing some testing and I make a host file entry to a different ip, I need the host file read correctly so I get the test site on the temporary ip, NOT the live site.
# Other reasons too numerous to mention (I block unwanted domains regularly with the host file)
This was a new behavior and one I wanted to know why so I did some research and found there is a setting in the newer versions of firefox has a config setting that needed changed.The default setting is true but once I set that to false I was able to test further, although if I recall it seemed a little buggy.Code:network.dns.offline-local
Then today while browsing at one point I accidentally typed a domain incorrectly. Normally this would produce a 404 or a site owned by someone different, but in this particular case I noticed the browser using a function that called siteplug_com and then redirected.
I went back to the stackexchange or superuser response where I found the original place to make the FF change and double checked I had the correct settings, but it kinda bugged me so I did some further testing.
I added entry's in the host file for
siteplug_com
www.siteplug_com
ww4.siteplug_com
*.siteplug_com (this one should have bee sufficient but wanted to be sure)
I point all 4 of them to 127.0.0.1 which is local host.
I then pinged various wording of the domain and all return the local host address.
Opera, MS Edge and Internet explorer all return a 404 on that domain.
Firefox takes all versions of the url and redirects to the live website and completely ignores the host file, which is behavior that shouldn't happen and shows it ignores directions from the OS. (before anyone says different, from what I can tell, in some cases the same behavior is seen on Linux installs, although not sure about this sitplug business yet)
(this would almost be like a browser suddenly to ignore an htaccess file to put it in an affiliate perspective - although I can not prove it only happens during a 404, but do not like that mozilla seemed to protect the siteplug domain inside it's own code)
For background on what siteplug does see their title and description
The site title is
<title>SITEPLUG - Meet us at ad:tech mumbai 2019 | 13-14 November | Autocorrects browsing errors | Performance Marketing</title>
Search descritpions are
<h1 class="hidden-xs">SITEPLUG GENERATES OVER<br>$300 MILLION IN SALES<br>FOR BRANDS ONLINE</h1>
What bugs me about this is that firefox as well as any browser could so easily steal any traffic any time they want, and how they completely ignore and override directives by the computer owner.
I have always kept up pretty well on updates and am using the very latest 71.0 64 bit version.
I do know that in the past Firefox never had some of the issues and craziness I have seen in the last year, but they have had a few major version revision in recent times, and in fact have completely made wide sweeping changes in what they allow, even going as far as disabling thousands of plugins and by default disallowing even an install of any plugin "they" deem inappropriate.
It may be time for me to change browsers for at least some functions, but this is the first time I have not been able to convince firefox to act at least somewhat the way I want it to.
If anyone is brave enough to try some of the above out, let me know what the results are.
Rick
Universal4


LinkBack URL
About LinkBacks
Reply With Quote

