You are here

Where do you put the HOSTS file ?

7 posts / 0 new
Last post
wylbur37
Offline
Last seen: 16 years 10 months ago
Joined: 2007-08-16 19:29
Where do you put the HOSTS file ?

For those who want to use a HOSTS file with FireFox,
in which directory/folder should the HOSTS file be placed?

For example, when using Windows XP without portable apps,
the HOSTS file is normally placed
into "c:\windows\system32\drivers\etc",
but when using portable apps, there's normally no such directory.

What is the directory on the portable apps drive that is
equivalent to "c:\windows\system32\drivers\etc"?

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 29 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Not Portable

HOSTS file has nothing to do with Firefox Portable. It's an operating system level thing that only works for Windows... i.e. it's a local thing. It's not portable.

Sometimes, the impossible can become possible, if you're awesome!

wylbur37
Offline
Last seen: 16 years 10 months ago
Joined: 2007-08-16 19:29
So how can you block access to certain URLs?

If the use of the HOSTS file is not implemented in portable apps,
then what is the equivalent arrangement that one can use to block
access to certain annoying/undesirable websites that might be
automatically accessed otherwise?

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 29 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
OS Level

It's not that it's not implemented... the hosts file is an oddball hack that works on Windows. It doesn't work with a browser or a mail client or anything. It works at the operating system level by routing all connections to specific domain names back to the local PC. And it's never really been the best way to protect yourself from anything.

By using a better browser like Firefox and keeping it updated, you don't need things like hosts files. And, if you want to block ads and tracking urls/cookies, you can use an extension like adblock.

Sometimes, the impossible can become possible, if you're awesome!

Tim Clark
Tim Clark's picture
Offline
Last seen: 13 years 2 months ago
Joined: 2006-06-18 13:55
BlockSite

Wylbur,

You could try the BlockSite AddOn.

https://addons.mozilla.org/en-US/firefox/addon/3145

Tim
(\__/)(='.'=)(}>

Things have got to get better, they can't get worse, or can they?

santuccie
Offline
Last seen: 16 years 9 months ago
Joined: 2007-08-14 06:54
I think this is what you're looking for

Using a beefed up hosts file, and keeping it updated, you would be able to block unwanted parasites and websites. However, be aware that a lot of web content can become inaccessible when you use one of these: http://www.mvps.org/winhelp2002/hosts.htm

SmithTech
SmithTech's picture
Offline
Last seen: 2 years 2 months ago
Developer
Joined: 2006-11-24 18:06
you could do what I did,

you could do what I did, create a launcher to copy your "portable" hosts file to the appropriate directory then copy it back when your done.
I had to do this for dreamweaver/WOS so when I go to SmithTechPortable in firefox it goes to my local development website.

-----------------------------------------------------------------------------------------------
Because they stand on a wall and say nothing is going to hurt you tonight. Not on my watch.

"Because they stand on a wall and say, 'Nothing is going to hurt you tonight. Not on my watch.'" (A Few Good Men)
Coincidence is God's way of remaining anonymous.(Albert Einstein)

Log in or register to post comments