gaenserich / hostsblock

an ad- and malware-blocking script for Linux
https://github.com/gaenserich/hostsblock
225 stars 28 forks source link

hostsblock-urlcheck questions to write better manpage #63

Open Wabuo opened 8 years ago

Wabuo commented 8 years ago

Hey I'm writing the hostsblock-urlcheck.8 manpage right now. #62

The questions:

pickfire commented 8 years ago

@Wabuo Okay, these are general questions about /etc/hosts if I am correct.

how do I block only a sub.domain?

Type out the whole sub.domain just like that.

how do I block a whole domain?

Type out the whole domain without the subdomain

how do I block only the given URL?

I am not sure if you can do this with something like hosts, IIRC some proxies allow this (eg. polipo/privoxy) but of course you need to type in the whole link including the path.

Please correct me if I am wrong since I wasn't using hostsblock for a long time since then.