So, you wanna block access to websites on your Android phone? For instance, you want to make it so you can’t go on Reddit or Facebook because both those sites are prime time-wasting tomfoolery? Cool. I can help you with that, because I just figured out how to do it myself.
There’s not that much out there in terms of ways to do this, though, and the only method I was able to find for non-rooted phones (yeah, I don’t know exactly what rooting is either) was this thing called Silent Block, an add-on for Firefox Mobile. Getting Silent Block to work was quite the puzzler for my (merely) moderately tech-savvy mind. Despite this, I succeeded, and was kind of surprised that figuring it all out was actually pretty rewarding.
If you want to get Firefox mobile and Silent Block on your Android phone, which is necessary in order to block access to specific websites of your choosing, here is what you must do:
1- Go to the Google Play store, and load Firefox Browser for Android. Install and open it.
2- In Firefox, scroll to the very bottom of the first page that opens, and select “Browse all Firefox add-ons.” Alternately, google “firefox add-ons for mobile.”
3- On the Firefox for Android Add-Ons page, enter Silent Block into the search bar. Search it.
4- Silent Block will pop up. Choose it.
5- On the Silent Block page, there will be a giant green button which says “add to firefox.” Push this button. Now, leave firefox, and make sure you close the app completely. To make sure this has happened, close all apps which are currently running. If you don’t know how to do this, go ask somebody else on the internet.
6- Re-open Firefox. If you want to double check that Silent Block loaded properly, hit your “menu” button (probably a physical button on your phone), select “tools,” then select “add-ons.” You should see Silent Block in your list of Add-ons, like so:
Cool. Now you have this add-on. Too bad it’s currently useless because the add-on doesn’t know what you want it to block.
FUN FACT TIME:
Unfortunately Silent Block is not terribly user-friendly for the uninitiated. There are no menus, no buttons, no switches. To make it work you need to squirm around in firefox’s nasty-ass internal workings and whisper techno-secrets into the right crevices if you want anything to happen. You’ll have to do similar things to your phone. Once you know how it works, it’s pretty simple, but the designer’s website instructions are designed for people with a level of technical savvy far beyond my own. I only figured this out with about an hour of effort, and a desire to solve this puzzle by learning new stuff. HERE‘s a link to the developer’s instructions, which are probably really useful if you are awesome at computers: www.schuzak.jp/fx/silentblock.html
Here’s the big picture of what needs to happen in order for Silent Block to actually block websites on your phone: 1) you have to create a file (or files) on your phone with a list of websites you want to be blocked, and 2) you have to tell firefox where to look for these files so that it can use them. There’s a bunch of ways this could be accomplished, but I’ll show how to do it if you connect your phone to your PC. Incidentally I have a Samsung Galaxy S3 so my instructions might not line up perfectly for your phone.
That being said, let’s make this add-on actually do something:
1) Plug your phone into your PC. Go to “My Computer” on your PC, find your phone, and open the internal memory. On my phone it’s called “sdcard0″ . If you have a mac, sorry. You can probably do something equivalent but I don’t know how that works, exactly.
2) You’ll have a bunch of weird files in there. Create a new file anywhere you want, and call it whatever you want. For clarity’s sake, though, you could call it “SilentBlock directory.” Remember where you put this file, though. Here’s a picture from inside my phone’s file explorer:
3) Now, open Notepad on your PC. Save a new notepad file as “contentblock-regex.txt” (without the quotations). YOU MUST NAME THIS FILE contentblock-regex.txt OR IT WILL NOT WORK. Any other file name (except for properly numbered files with the same name, to be addressed in a second) will not function. Save this .txt file in “SilentBlock directory” or whatever file you made for this purpose on your phone.
Bonus fact: To the best of my knowledge you only need one file, but if you want to have a couple files, you have to name them “contentblock-regex.txt, contentblock-regex1.txt, contentblock-regex2.txt”… and so on consecutively. I think if you don’t number them consecutively (starting with no number) it may screw stuff up. Here are some properly named files in my phone:
4) In notepad, in your .txt file which you just created and named properly, type in any websites that you want to be blocked. Here’s what my list looks like (the reason it looks different from your notepad file on the computer is because it’s opened in my phone):
Shameful sites to be time wasters, I know. But guess what- I don’t go to those sites anymore. I just put a single line break between each of the entries, and this is working for me.
5) you don’t need to put in a full URL. To my understanding, Silent Block will block anything that has that exact combination of letters and numbers in it. For instance, I just discovered that I have unintentionally blocked not only http://www.sign.com, but also http://www.badassdesign.com by putting “ign.com” on the list. If I just put “ign” on the list, I also wouldn’t be able to go to design.org, or to any site that has the letters “ign” anywhere in the URL. In other words, be careful! I’ve just changed my .txt file to read “ca.ign.com” so that it blocks only the website that I want. Here’s what it looks like now.
Incidentally I have never gone to design.com or badassdesign.com before, but… what if I want to some day?
6) Anyways, you have put all the URLs you want to block in your contentblock-regex.txt file, we need to tell firefox where to find this file. This way, firefox can access your list, allowing Silent Block to stop your browser from going to these sites.
7) Write down where your SilentBlock directory file is. For me, it’s under “/storage/sdcard0/SilentBlock directory” (without the quotation marks). The format- with slashes, capitalization, spelling and all- is very important. On my phone this “file path” is written at the top of the screen (see picture below). We’ll be using this file path to tell firefox where to find its information about the websites we want it to block. Don’t just assume that my file path will work for you; you’ll need to figure out what your own is. If you don’t write the file path properly, Firefox will still work properly, but it will give you an error notice when it opens and no sites will be blocked.
8) After your’ve taken note of the filepath, open firefox. In the address bar, type “about:config” This opens up the guts of firefox so you can modify it as you please. I don’t understand anything about this aside from what I’m telling you right now, so don’t tinker with anything other than what I mention unless you are much more wise than I.
9) In the “search settings” box, type (without quotation marks) “extensions.silentblock.altdir” . There will be 2 buttons that pop up: Modify, and Reset. Hit Modify. In the picture provided my filepath is already there, but by hitting modify, you’ll be able to put your relevant filepath in.
10) Put in your file path. Press “okay”.
11). Now completely quit Firefox again.
12) Re-start firefox. Type in one of the webpages you want to block. If this process has worked, it simply won’t go to that page- no pop-ups, no warnings, nothing.
13) If it worked, feel like a boss. Test the other pages if you want. Enjoy
Additional steps (some of which are optional)
14) If you haven’t done so already, take up Brazilian Jujitsu.
15) If you are computer-savvy, make something that does a similar job to silent block, but make it more accessible. Charge a small fee, and make money. I don’t doubt there will be more demand for this type of thing as more people get online with their phones.
16) Go to http://www.schuzak.jp and say thanks to the guy who made Silent Block.
16) Age for an indeterminate number of years.
17) Experience death, and (hopefully) simultaneous satisfaction with how you spent your life.