Jump to content
xisto Community
FirefoxRocks

Safari And Hosts File Overriding the file??

Recommended Posts

I found this to be quite alarming when I found that sites I blocked using HOSTS were still accessible by Safari. My HOSTS file consists of many automatically added entries by Spybot S&D and SpywareBlaster and similar programs, but I also have some user added entries also. It is a 228KB file, and a small segment that I added looks like this:127.0.0.1 myspace.com127.0.0.1 http://forums.xisto.com/no_longer_exists/ ca.myspace.comI found it to be inaccessible by all user accounts using Firefox, Internet Explorer, Opera and Flock. However, I tried accessing it using Safari and it was completely accessible! This applies to all user accounts. Initially I thought it was cached, but I emptied the cache and history and it still worked.Isn't the HOSTS file supposed to be network-wide? If so, how is Safari accessing it? If it only applies to Internet Explorer, then how come it is still working with Firefox, Flock and Opera?I need to block sites in Safari and it doesn't seem to include any plugins to do this effective (I'm using Windows btw, not a Mac).

Share this post


Link to post
Share on other sites

Is the "DNS client" service running on your PC?

Yes, it's Automatic and without it, I would need to type in IP addresses to access sites instead of domain names.

Share this post


Link to post
Share on other sites

Yes, it's Automatic and without it, I would need to type in IP addresses to access sites instead of domain names.

No you don't, the only thing it does is caching dns entries, I have it disabled for years and I can still type normal urls :) .

Share this post


Link to post
Share on other sites

No you don't, the only thing it does is caching dns entries, I have it disabled for years and I can still type normal urls :) .

So are you saying that if I disable it, the HOSTS file would be effective on Safari also?

Share this post


Link to post
Share on other sites

You can try that, remember, system preferences when it comes to networking on the Apple is only really linked to Safari. If you change it, it shouldn't affect Firefox and etc.
xboxrulz

Did you forget to read that I was running Windows? Anyways, the site is still accessible, DNS Client running or stopped.

Share this post


Link to post
Share on other sites

Interesting enough that Safari runs all Mozilla plug-ins, but since they keep with their own design methods, many of the software itself is self-contained unlike traditional Windows software, so that in itself maybe a problem. There are no HOSTS problem on the MacOS X version. Try another Webkit web browser to see if it's just Safari or is it a Webkit issue.xboxrulz

Share this post


Link to post
Share on other sites

I don't really understand where the problem is.In each computer, were it Windows or Linux or proprietary Unix, home or professional server, the host file has to exist and has to be readable by everyone.You also have to define the name resolution policy, first DNS and then local host file, or local host file and then DNS, or DNS only.Besides that, I personally feel very stupid to add fake IP addresses in a host file (for instance in ca.myspace.com in your example.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.