How to stop my Android device from being spammed in the browser as well as in the application? Recently I have downloaded two games:


Deer Hunter
PreHistoric Worm


But after that I have my browser which keeps redirecting me to http://ad.adsmatte.com

It is happening every time I load the page – after few seconds, it automatically gets redirected to this AdsMatte and doesn't go back to the previous page, even if I press the Back key.

In an application like WebMd, when I load the app, after few seconds it is covered with a full screen ad whereas it used to display the options menu. This is blocking my view and I cannot see what is being displayed by the application.


The WebMd app which is showing an "Update Your Browser" message with a "Install Now" link to Play Store (click image for larger variant)

I don't have Opera and it still tells me to update my Opera browser.

I closed the application and retried it, and again it is displayed with some "Warning your HM1S is affected with Virus" and starts vibrating.

Note: Please avoid anything like this post suits well on MIUI/forum, I have already asked there and got a very immature answer as to disable Java Scripts even after seeing my below screenshot.

[Update]
I have tried using mobile data and now it does not redirect so it's more of the modern problem the app are clean
Based from the same problem on AskUbuntu, this is not OS-dependent, but an attack to the router. Try hard reset the router.


  This does not appear to be an OS related issue. I would recommend you to read this http://www.quora.com/How-do-I-stop-AdsMatte-spam-popups-and-ads
  
  Basically it is an attack on/via your router. You should hard reset it. A lot of computers on my intranet got affected. I got rid of it that way.


If it still fails, from Security.SE, try checking &amp; fixing the DNS address both on router and Android device.


  If your router is affected and you're facing different issues on your devices (Android has no ads, computer does) may check/change your DNS settings on both devices and on the router.
  
  I think your Android phone uses a different DNS server as your PC. Your PC probably uses your router as DNS Server (e.g. 196.168.1.1) and your Android uses a 3rd party DNS like Google (8.8.8.8, 4.4.4.4) or OpenDNS. For this behaviour check: this answer on Super User
  
  To clean up your router, you may have a look at: 
  this answer on Security.SE


To check DNS settings on Android:


Open Settings - Wi-Fi
Long-press the access point, select Modify network
Turn on Advanced options
Change IP settings to Static
Check/set the DNS 1 &amp; DNS 2 to Google DNS (8.8.8.8 and 8.8.4.4) or other trusted DNS server.