Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Please help me block NSFW subreddits like this one (

I would like to keep access to SFW subreddits, but block certain subreddits that are distracting or NSFW. I know how to filter domains. (see files below) But how do I apply the filter only to certain subreddits?

So far I have set up the following files:


zone "" { type master; file "dummy-block"; };
zone "" { type master; file "dummy-block"; };
zone "" { type master; file "dummy-block"; };


options {
allow-query {; };
allow-recursion {; };
directory "c:\bind\etc";
notify no;

zone "." IN {
type hint;
file "c:\bind\etc\named.root";

zone "localhost" IN {
allow-update { none; };
file "c:\bind\etc\";
type master;

zone "" IN {
allow-update { none; };
file "c:\bind\etc\named.local";
type master;

key "rndc-key" {
algorithm hmac-md5;
secret   "O5VdbBKKEMzuLYjM60CxwuLLURFA6peDYHCBvZCqjoa6KtL1ggD7OTLeLtnu2jR5I5cwA/MQ8UdHc+9tMJRSiw==";

controls {
inet port 953 allow {; } keys { "rndc-key"; };

include "c:\bind\etc\blocklist.conf";


$TTL    604800
@       IN      SOA     localhost. root.localhost. (
                          2         ; Serial
                     604800         ; Refresh
                      86400         ; Retry
                    2419200         ; Expire
                     604800 )       ; Negative Cache TTL
@       IN      NS      localhost.
@       IN      A
*       IN      A
share|improve this question

You can't with Bind9. You can only not resolve the entire with DNS for which they can just point to another DNS server or use the numeric IP to reach it.

What you want is to do "Content Filtering" in your firewall/proxy and disallow that URL.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .