URL deny failure - Ubuntu

This is a discussion on URL deny failure - Ubuntu ; I tried to block some URLs using hosts.deny. This is what I added to the file: 127.1.1.1 ads.doubleclick.com 127.1.1.1 ad.doubleclick.com 127.1.1.1 ads.doubleclick.net 127.1.1.1 ads.doubleclick.net I still get the URLs. What am I doing wrong? Al...

+ Reply to Thread
Results 1 to 7 of 7

Thread: URL deny failure

  1. URL deny failure

    I tried to block some URLs using hosts.deny. This is what I added to the
    file:

    127.1.1.1 ads.doubleclick.com
    127.1.1.1 ad.doubleclick.com
    127.1.1.1 ads.doubleclick.net
    127.1.1.1 ads.doubleclick.net

    I still get the URLs.

    What am I doing wrong?

    Al



  2. Re: URL deny failure

    Al wrote:

    > I tried to block some URLs using hosts.deny. This is what I added to the
    > file:
    >
    > 127.1.1.1 ads.doubleclick.com
    > 127.1.1.1 ad.doubleclick.com
    > 127.1.1.1 ads.doubleclick.net
    > 127.1.1.1 ads.doubleclick.net
    >
    > I still get the URLs.
    >
    > What am I doing wrong?
    >
    > Al


    What you are doing wrong is using the wrong way to block what you're trying
    to block.

    hosts.deny is used for services that use a tcpwrapper and only to block
    incoming connections to those running services.

    To do what you're trying to do edit your hosts file ...

    /etc/hosts

    Cheers.

    --
    Ubuntu 7.10 ... wow!
    http;//www.ubuntu.com

  3. Re: URL deny failure

    On Thu, 29 Nov 2007 20:44:54 GMT
    Al wrote:

    > I tried to block some URLs using hosts.deny. This is what I added to the
    > file:
    >
    > 127.1.1.1 ads.doubleclick.com
    > 127.1.1.1 ad.doubleclick.com
    > 127.1.1.1 ads.doubleclick.net
    > 127.1.1.1 ads.doubleclick.net


    As well as the hosts file as suggested by NoStop, have a look at the
    "adblock plus" add-in fir Firefox.

    --
    ~/.signature MD5 Hash error.

  4. Re: URL deny failure

    Al wrote:
    > I tried to block some URLs using hosts.deny. This is what I added to the
    > file:
    >
    > 127.1.1.1 ads.doubleclick.com
    > 127.1.1.1 ad.doubleclick.com
    > 127.1.1.1 ads.doubleclick.net
    > 127.1.1.1 ads.doubleclick.net
    >
    > I still get the URLs.
    >
    > What am I doing wrong?
    >
    > Al
    >
    >


    i think you are just using the wrong loopback address:
    i use for example (in /etc/hosts):
    127.0.0.1 localhost us.ard.yahoo.com localhost1

    and this works for me.

  5. Re: URL deny failure

    On Thu, 29 Nov 2007 20:58:14 +0000, NoStop wrote:

    > Al wrote:
    >
    >> I tried to block some URLs using hosts.deny. This is what I added to
    >> the file:
    >>
    >> 127.1.1.1 ads.doubleclick.com
    >> 127.1.1.1 ad.doubleclick.com
    >> 127.1.1.1 ads.doubleclick.net
    >> 127.1.1.1 ads.doubleclick.net
    >>
    >> I still get the URLs.
    >>
    >> What am I doing wrong?
    >>
    >> Al

    >
    > What you are doing wrong is using the wrong way to block what you're
    > trying to block.
    >
    > hosts.deny is used for services that use a tcpwrapper and only to block
    > incoming connections to those running services.
    >
    > To do what you're trying to do edit your hosts file ...
    >
    > /etc/hosts
    >
    > Cheers.


    OK, I tried it and it seems to be working. I guess I misunderstood what
    hosts.deny was for. The 'man' was of no help and I couldn't find any
    reference to hosts files in my Ubuntu book.

    Now if I could only block the popups that appear when you slide your
    mouse over an underlined keyword.

    Al

    Al

  6. Re: URL deny failure

    Al wrote:
    >
    > OK, I tried it and it seems to be working. I guess I misunderstood what
    > hosts.deny was for. The 'man' was of no help and I couldn't find any
    > reference to hosts files in my Ubuntu book.
    >
    > Now if I could only block the popups that appear when you slide your
    > mouse over an underlined keyword.
    >


    As has been pointed out, if you install adblock plus for Firefox then
    that's able to take care of the intellitext stuff (inframe popups on
    underlined keywords).

    Adblock Plus:
    https://addons.mozilla.org/en-US/firefox/addon/1865

    Or you can probably also add the various intellitext domains to your
    hosts file for the same effect, but I've not tried it.

    --
    [ste]

  7. Re: URL deny failure

    On Thu, 29 Nov 2007, in the Usenet newsgroup alt.os.linux.ubuntu, in article
    <474f5e2a$0$16471$4c368faf@roadrunner.com>, Rodger Lee wrote:

    >Al wrote:


    >> I tried to block some URLs using hosts.deny. This is what I added to the
    >> file:
    >>
    >> 127.1.1.1 ads.doubleclick.com
    >> 127.1.1.1 ad.doubleclick.com
    >> 127.1.1.1 ads.doubleclick.net
    >> 127.1.1.1 ads.doubleclick.net
    >>
    >> I still get the URLs.
    >>
    >> What am I doing wrong?


    As others have noted - wrong file.

    >i think you are just using the wrong loopback address:
    >i use for example (in /etc/hosts):
    >127.0.0.1 localhost us.ard.yahoo.com localhost1


    Most operating systems (specifically includes Linux) know that any host
    from 127.0.0.0 through 127.255.255.255 is "me", and route all such
    traffic to the loopback interface. Does your system respond to pings?
    If so, try pinging _any_ address in the 127.x.y.z range, and you'll see
    the same results:

    [compton ~]$ ping -qc 1 127.0.0.1
    ping -qc 1 127.0.0.1
    PING 127.0.0.1 (127.0.0.1): 56 data bytes

    --- 127.0.0.1 ping statistics ---
    1 packets transmitted, 1 packets received, 0% packet loss
    round-trip min/avg/max = 0.4/0.4/0.4 ms
    [compton ~]$ ping -qc 1 127.1.1.1
    PING 127.1.1.1 (127.1.1.1): 56 data bytes

    --- 127.1.1.1 ping statistics ---
    1 packets transmitted, 1 packets received, 0% packet loss
    round-trip min/avg/max = 0.4/0.4/0.4 ms
    [compton ~]$ ping -qc 1 127.127.127.127
    ping -qc 1 127.127.127.127
    PING 127.127.127.127 (127.127.127.127): 56 data bytes

    --- 127.127.127.127 ping statistics ---
    1 packets transmitted, 1 packets received, 0% packet loss
    round-trip min/avg/max = 0.4/0.4/0.4 ms
    [compton ~]$

    All 4,294,967,296 addresses (including 127.0.0.0 and 127.255.255.255)
    respond the same way.

    Old guy

+ Reply to Thread