aze Posted December 10, 2002 Report Share Posted December 10, 2002 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! Quote Link to comment Share on other sites More sharing options...
bvc Posted December 10, 2002 Report Share Posted December 10, 2002 /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] Quote Link to comment Share on other sites More sharing options...
aze Posted December 11, 2002 Author Report Share Posted December 11, 2002 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! Quote Link to comment Share on other sites More sharing options...
chalex20 Posted December 11, 2002 Report Share Posted December 11, 2002 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. Quote Link to comment Share on other sites More sharing options...
aze Posted December 11, 2002 Author Report Share Posted December 11, 2002 WOh! Now i got it! Thank you guys! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.