Thursday 3 May 2018

How to block Viber ads on DD-WRT router





Rakuten Viber introduced commercials in newer verions of their app so users became products. Often , ads are displayed aggressively and interfere with the normal use of app. The solution to this problem is relatively simple: you just need to redirect the domains the Viber app uses to display ads to a non-existent addresses.
First of all make sure that you have enabled "Use DNSMasq for DNS" option under Setup\Basic Setup tab. Second, enable "Local DNS" option and disable "No DNS Rebind" option on Services tab. In "Additional DNSMasq Options" paste these host-record config directive:

host-record=ads.viber.com,127.0.0.1,2592000
host-record=ads.aws.viber.com,127.0.0.1,2592000
host-record=ads-d.viber.com,127.0.0.1,2592000
host-record=media.cdn.viber.com,127.0.0.1,2592000
This way you made simple DNS proxing :)  TTL of 2592000 seconds (one month) means that when the network device (iPhone, Android) once takes over the domain information, it will hold it for a month. Even when it roams to 3G/4G network you will see no ads on Viber. However, these preset settings only last until you restart your device.


How to block Viber ads on DD-WRT router

Rakuten Viber introduced commercials in newer verions of their app so users became products. Often , ads are displayed aggressively a...