Hosts file filtering

Using applications, configuring, problems
Post Reply
Message
Author
artsown
Posts: 403
Joined: Wed 12 Sep 2012, 18:35

Hosts file filtering

#1 Post by artsown »

The MVPS hosts file works well for me on Windows XP, but I have not been able to
get it working on any version of Puppy. As I understand it, it should be a simple
matter of simply replacing the existing hosts file in /ETC with the MVPS hosts file
and then rebooting. Help would be appreciated.

Art

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#2 Post by sunburnt »

I don`t know, but using a Win. file in Linux doesn`t sound like a good idea.

Perhaps if you post the text content of the file, then maybe we can help you.?

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#3 Post by mikeb »

Perhaps its hosts.deny you need to post them in ...hosts only gives names to ip's.

mike

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

#4 Post by tlchost »

mikeb wrote:Perhaps its hosts.deny you need to post them in ...hosts only gives names to ip's.
mike
The hosts file can also be used to "force" a domain name to go to a local IP which then makes the host unreachable

127.0.0.1 yahoo.com
127.0.0.1 murga-linux.com

Insure you get ALL of the site blocked
127.0.0.1 siteyouwannablock.com
127.0.0.1 www.siteyouwannablock.com
127.0.0.1 ad-server.siteyouwannablock.com

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#5 Post by dejan555 »

Did you rename it to lowercase hosts instead HOSTS?
Just a thought I know everytime I download their zip hosts file is in uppercase which doesn't matter in windows.
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

artsown
Posts: 403
Joined: Wed 12 Sep 2012, 18:35

#6 Post by artsown »

Problem solved. I changed the hosts file permissions to:
command: a-x (Make non-executeable/non-searchable)

You can tell by the icon whether or not it's a executeable. Apparently, it must not
be exectueable since that makes the hosts file unviable ... it will not work as
intended.

Art

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#7 Post by mikeb »

Ah like the sudoers file.....

send host to dummy ip... noted

learn something every day...sometimes 2 things :)

mike

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#8 Post by amigo »

The sudoers file is even more restrictive. In it's normal state it should be non-writable, that is chmodded 440 or 444(if you want to allow mortals to even read the file). It must first have the write-bit set to allow editing the file. And then should be chmodded 440 or ... again after editing.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#9 Post by mikeb »

Yes it told me off for not making it so :D

Twas only getting Xfce4 to allow me to shutdown the machine....


mike

Post Reply