Jump to content

/etc/hosts.deny


aze
 Share

Recommended Posts

Hi everybody!!

When I surfing on the web I don't want to see spams/ads. So I have a nearly 65,000 lines of ADS's and SPAM's domains in a file called HOSTS.

The format of this huge plain text file (1.6Mb) is:

 

127.0.0.1 ads.host.xxx

127.0.0.1 ...ads2.host.xxx...

127.0.0.1 any.ads.host

...

...

...

I set this file to /etc/hosts.deny but I still seeing annoying banners.

 

Otherwise, if I replace /etc/hosts with my huge black list :D it works ok! But if using Netscape it shows a message box saying the connection has failed to every ads/spam on the page I'm surfing.

 

Is my procedure wrong replacing the /etc/hosts.deny with my huge black list? Why it doesn't work (hosts.deny)?

 

Thanks a lot for any help!

Link to comment
Share on other sites

/etc/hosts was right. To use the file you have to deal with the popup warnings.

 

If you are not running a "local" network, put ALL:ALL in it

#

# hosts.deny	This file describes the names of the hosts which are

#  *not* allowed to use the local INET services, as decided

#  by the '/usr/sbin/tcpd' server.

#

# The portmap line is redundant, but it is left to remind you that

# the new secure portmap uses hosts.deny and hosts.allow.  In particular

# you should know that NFS uses portmap!

# 

ALL:ALL

Note :*not* allowed to use the local INET services [local]

Link to comment
Share on other sites

hi bvc!

I tried inserting "ALL:ALL" at first line of hosts.deny but nothing happenned. It still not blocking the hosts.

Or "ALL:ALL" means some syntax?

Thank you!

I think you didn't understand him completely.

He tries to say, that hosts.deny prevents some hosts from connecting to YOUR computer and from using services YOUR computer provides. It DOESN'T PREVENT your computer from connecting to those hosts and using THEIR services. You should either configure your browser or some firewall so that it blocks either outgoing or incoming connections with these hosts.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...