image blocking

    Date: 03/10/06 (Computer Geeks)    Keywords: linux

    For various reasons I am trying to block images from specific servers. My solution so far has been to amend /etc/hosts and redirect all traffic to those servers to 127.0.0.1
    This has worked OK when the images are located at http://bad_server.com/image.jpg, however several of the images use sub-domains. Pictures from sub-domain.bad_server.com/image.jpg are getting through. I've tried adding the entry *.bad_server.com and just bad_server.com but nothing seems to work, any ideas?
    (using a mac btw, so linux/unix solutions should work too.)
    [.EDIT] I tried the servers IP too. still no good.
    oh yes, and there's an unknown quantity of subdomains, I want to block them all, otherwise it would be nice and simple...
    [.Edit] Fixed, talk about trying to do things the hard way...

    Source: http://community.livejournal.com/computergeeks/891425.html

« Uncapping? || Free PDF Converter »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home