Skip to content

How to block sites that open themselves on Android

Rate this post

For some time now, using your Android smartphone has become practically impossible: the fault lies with all those Web pages that open at any moment, without you doing absolutely anything! Tired of this situation, you have decided to open Google in search of a guide that can explain  how to block sites that open themselves on Android and you have ended up right here, on my website.

Well, I am happy to inform you that you are in the right place, at the right time: in the course of this tutorial, in fact, I will provide you with a series of tips to ensure that the sudden opening of unwanted sites, for your terminal, becomes only a bad memory. Do not worry if you are not very skilled with technology, because the steps that I am about to illustrate are really within everyone’s reach, even those who, like you, have never done something like this before.

So, without hesitating a moment longer, make yourself comfortable and read very carefully everything I have to say on the subject: I am sure that, at the end of this reading, you will have acquired the necessary skills to remedy this inconvenience of which, now, you just can’t take it anymore. At this point, there is nothing left for me to do but wish you happy reading and wish you a big good luck for everything!

Check for suspicious apps

Often, the opening of unwanted Internet sites on Android is caused by some apps that, in an attempt to propose sponsored apps and sites, do not hesitate to disturb the user with sudden, as much as unwanted, advertising windows. Generally, “harassing” ads are not only displayed while browsing the Internet, but also in other areas of the operating system.

As a first step, therefore, I suggest you check the list of installed apps, looking for  suspicious apps that may behave similarly: unfortunately, apps of this type are far from rare, so it is not possible for me to provide you with an exhaustive list. of software to stay away from.

However, in general, this type of behavior is typical of apps that respond to the “freemium” model (free ones, self-sponsored, with the possibility of purchasing additional features) and free-to-play games, which are also often , designed for in-app purchases.

Clearly, not all freemium apps and not all free-to-play games show unwanted sites and popups, so the discussion remains absolutely general.

In any case, what you can do is access the section relating to the applications installed on Android and delete those that convince you least: to be able to do this, touch the Settings icon  (the one in the shape of a gear ) located in the drawer of the device, Tap the item  Apps and notifications / Apps / Applications and, if necessary, tap on the item  Show all apps .

At this point, locate the suspicious app in the list displayed on the screen, tap its name and, to get rid of it, press the Uninstall and  OK buttons . If you need more information on how to uninstall apps on Android, you can take a look at the guide I made on this.

Run a malware scan

Run a malware scan

If, after deleting the apps you found suspicious, you continue to view unwanted websites when you least expect it, I recommend that you run a malware scan, looking for other well-hidden spyware.

For this purpose, I recommend that you rely on Malwarebytes for Android, the version dedicated to Google’s operating system of the famous PC software. The app is available for free on the Play Store , with the possibility of in-app purchases to expand its functionality (by activating, for example, real-time protection).

In any case, after downloading and starting Malwarebytes, tap the Start now button  , repeat the operation with the Give permission button  and tap the Allow item  , so that the app can analyze the files and folders on the device.

At this point, choose whether to  start the 30-day Premium trialpurchase the Premium version or  continue with the free version (in this case, you must touch the Skip item  located at the top right), touch the Repair button  and then do tap on the Update database button  , to download the new malware definitions.

How to block sites that open themselves on Android

After this step too, all you have to do is tap the Run full scan button  and let Malwarebytes do its job. At the end of the analysis, you will see a summary of the status of the device, together with the list of any threats present, with relative instructions to eliminate them immediately.

Although Malwarebytes is among the best security apps for Android, it is certainly not the only one: in fact, in my guide to the best Android antivirus, I have listed numerous other apps of this type, which are also very efficient.

Set the pop-up blocker in the browser

Another effective method to block sites that open themselves on Android is to set the  popup blocker in the browser: in this way, the Internet pages visited will no longer be authorized to open others, unless the user is voluntarily open links, images or other content. Below, I’ll explain how to do this in Chrome and Firefox browsers . Note, however, that blocking pop-ups may affect the functioning of some websites.

Chrome

Set the pop-up blocker in the browser

To activate the popup blocker on Chrome for Android , start the browser, touch the button (⋮) located at the top right and touch the Settings item  located in the menu that appears. Next, tap on the  Site Settings and Popup and Redirects items and move  the lever located at the top of the screen to OFF .

Finally, check the list of  Exceptions and verify that, among them, there are no suspicious sites or sites capable of opening harmful, harmful or unwanted popups. If so, tap on the name of the site in question, tap the  Popup and redirects item and put the check mark next to the Block option  .

Firefox

Set the pop-up blocker in the browser

The steps to take to block pop-ups on Firefox for Android are quite similar to those seen previously for Chrome. To begin with, start the browser, type the string  about:configin the address bar and  enter , to access the browser’s advanced configuration page.

At this point, type the code in the search field at the top right,  dom.disable_open_during_loadtap on the first result returned and tap the Set item  , which appears on the right, to set the parameter value to False and disable the popups.

In case of second thoughts, you can activate the display of the same again, following the same procedure seen above but touching, this time, the Reset button  .

Check DNS

How to block sites that open themselves on Android - Check DNS

Another method widely used to make Android and its apps open unwanted Internet sites autonomously, is to alter the DNS used for browsing via Wi-Fi. For your information, DNS servers take care of “translating” literal addresses into corresponding numerical IP addresses, thus allowing data to move easily across the Internet.

Consequently, it is sufficient to use an ad-hoc designed DNS server to make the Android device display unwanted sites, instead of those the user intends to browse.

To check that the Android DNS have not been changed, proceed as follows: first, go to the operating system Settings by touching the gear- shaped icon located in the drawer, tap on the  Network and Internet and  Wi- Fi and select the  wireless network you are currently connected to.

Then, tap on the pencil- shaped icon  located at the top right, touch the Advanced Options item  , scroll the displayed panel until you find the wording  IP Settings and, unless you have not manually intervened on the address IP assigned to the device, make sure the drop down menu below is set to  DHCP . If not, do it yourself.

If, on the other hand, you had voluntarily assigned a static IP address to the device, check that perfectly legitimate servers are indicated in the DNS 1 and  DNS 2 fields  , such as those of Google (8.8.8.8 and 8.8.4.4) or those of OpenDNS (208.67 .222.222 and 208.67.220.220). If there are any suspicious options, immediately change the servers in use, choosing them from those I have presented to you in my list of the best DNS.

When you are done, I recommend that you go back to the Wi-Fi network selection screen and repeat the same check on all the other saved networks: to be able to do this, make a long tap on the name of the wireless network you are interested in, tap on the Change network item  located in the menu that is proposed to you and follow the same steps seen above to check, or correct, the DNS servers in use.

As for cellular networks , however,  it is not possible to change the DNS in use while browsing, unless you use apps such as Cloudflare’s 1.1.1.1 (which, however, uses only its DNS, more than legitimate) or that the device has not been previously rooted. If the device is unlocked with root, you can use an app suitable for the purpose, such as OverrideDNS , to check the DNS set for data navigation and change them if necessary.

In case of doubts or problems, I invite you to consult my guide on how to change DNS on Android, in which I have treated the subject in great detail.

Other ways to block sites that open themselves on Android

Other ways to block sites that open themselves on Android

Although you have slavishly followed the instructions I gave you in the course of this tutorial, have you not been able to block sites that open themselves on Android ? Don’t throw in the towel, I still have a couple of useful tips which, in this case, could prove to be decisive.

To begin with, if the root permissions had been previously activated on the terminal in your possession, I suggest you delete them, so as to increase the security of the device and prevent apps from showing you sites that you would not want to see.

The methods to disable elevated permissions on Android are different and vary depending on the procedure used to obtain them: generally, it is sufficient to start the app used to obtain root privileges (eg SuperSU ), go to the Settings tab  and select the option for full unroot . To get more detailed information on the procedure to follow, you can do a short search on Google, using as a key delete root [device brand and model] .

If, despite the removal of root permissions, the problem continues to arise, I recommend that you consider returning the terminal to  factory settings , in order to solve the problem at the root.

Clearly, before proceeding, make sure you have created a backup of your data, as resetting to the initial settings results in the complete loss of the data saved in the device memory. For more information on that, you can check out my guide on how to format Android.

How do you say? Did you return the device to the initial settings but, after a few days, the problem arose again? If so, the cause could be found in the operating system.

Some custom ROMs , especially those highly customized by little-known manufacturers, could integrate within them a sort of spyware, which can be activated remotely, which allows you to start the display of unwanted Internet sites at any time.

Such spyware, being integrated into the operating system, may not be detected by antimalware, nor by the integrated Play Protect system.

In that case, there isn’t much you can do but try to change the operating system by installing a “cleaner” and more reliable ROM. Unfortunately, this is not a risk-free procedure which, in the worst case, could render the device unusable.

Furthermore, not all Android terminals allow such a replacement, as alternative ROMs to those with which they are distributed may not be available.

In any case, to receive more detailed information about the replacement of ROMs on Android, I refer you to my guide on how to change the Android operating system, in which I was able to explain everything in detail.