Posted inMikrotik / Tutorial

Block Ads Through Mikrotik Firewall Raw

To combat disruptive ads while browsing the internet, you can simply add the following list and rules to your Mikrotik router.

Firstly, add the following address list:

/ip firewall address-list

add address=analytics.google.com list=Ads
add address=clientmetrics-pa.googleapis.com list=Ads
add address=google-analytics.com list=Ads
add address=googleadservices.com list=Ads
add address=googlesyndication.com list=Ads
add address=l.google.com list=Ads
add address=adservices.google.com list=Ads
add address=wintricksbanner.googlepages.com list=Ads
add address=ads.youtube.com list=Ads
add address=ads.yahoo.com list=Ads
add address=ads.yimg.com list=Ads
add address=adserver.yahoo.com list=Ads
add address=analytics.yahoo.com list=Ads
add address=marketingsolutions.yahoo.com list=Ads
add address=visit.webhosting.yahoo.com list=Ads
add address=ientrymail.com list=Ads
add address=newopenx.detik.com list=Ads
add address=ads.kompass.com list=Ads
add address=kompasads.com list=Ads
add address=googleads.g.doubleclick.net list=Ads

Once added, implement the following rule into the raw firewall:

/ip firewall raw

add chain=prerouting action=accept log=no log-prefix=”” src-address-list=!Ads

After saving these changes, try browsing and feel the difference. Happy experimenting!

Leave a Reply

Your email address will not be published. Required fields are marked *