Make Money Online WEBSITES Mikrotik How to Block Ads/Adult Website by Redirect DNS

Mikrotik How to Block Ads/Adult Website by Redirect DNS

Mikrotik How to Block Ads/Adult Website by Redirect DNS post thumbnail image


Mikrotik routers can be used to block ads and adult websites by redirecting DNS. This can be done by creating a DNS server on the router and configuring it to block specific domains.

To do this, you will need to create a file called “dns.filter” in the “/etc/dnsmasq.d/” directory. The contents of the file should be as follows:

address=/ads.com/127.0.0.1
address=/adultwebsites.com/127.0.0.1

This will redirect ads.com and adultwebsites.com to the localhost IP address. You can add additional domains to the file as needed.

Next, you will need to enable the DNS server on the router. This can be done by running the following command:

/ip dns set enabled=yes

You can then test the DNS server by running the following command:

/ip dns test

You should see the following output:

dns test:

success: all tests passed

You can now browse the internet without being bothered by ads or adult websites.

Tags:

Related Post