Host file edit not blocking reddit properly - Android Q&A, Help & Troubleshooting

Hi thanks so much in advance for your help.
My phone is a Moto z2 play
So I unlocked my bootloader and rooted my phone with the intention of blocking sites that make me unproductive; all as part of a new year's resolution. I used Magisk too root and am able to use ES file explorer to edit the host file and I've put in different lines '127.0.0.1 "website name"' in order to block all the sites that make me unproductive. This however doesn't work well for reddit.
What I'm seeing is that if I enter reddit.com in my url I'll be blocked. But if I am linked to reddit via google then it'll circumvent the block and I'll have access. From here on I can change the url to any subreddit and access it and the block doesn't work.
I've tried blocking with the prefixes www, m., https:// etc. it still doesn't block google links. Do any of you know what I can do to fix this?
Thanks again!

Related

Install a web certificate (*.cer) on an Android device

Hi,
To gain access to WIFI at university I have to login with my user/pass credentials.
The certificate of their website (the local home page that asks for the credentials) is not recognized as a trusted certificate, so we install it separately on our computers.
I want to know how to install such certificates on Android, I have HTC magic and I came through this question which seems the same problem but the solution is specific to exchange server and not the browser http://forum.xda-developers.com/showthread.php?t=551512
This is the details of installing the certificate from the university's page [LINK]
if you are rooted, download wifi helper (its free) from market and it should help you configure your wifi with custom cert files.
Hey,
I stumbled onto this topic as I had the problem (but on the Droid, Android v2.0). I then figured out how to do it and made a tool to make it easier. I call it RealmB's Android Certificate Installer. It basically gives your Android's web browser the correct HTTP headers to make it launch the CA certificate installation wizard.
Hope this helps,
Brian
I used Android's built-in certificate manager.
1. Just drop your certificate file onto the sdcard/download folder.
Note: Keep in mind the manager looks for .p12 and/or .crt files. I had a .cer file, but it was PEM formatted so I simply changed the extension.
2. Go to settings-> Security & Privacy -> Install from SD Card
Note: I use the MIUI rom, so millage may vary a bit on other roms
Done! Enter your credentials password, or create a new one if you didn't have one already, and you're all set!
Thanks MrNago
renaming .cer to .crt really makes me being able to install it. Life can be so easy ... (MIUI 2.3)
I was looking for a way to do this exact thing, and found a (potentially) easier way to install the certificate. If you have access to a web site, you can just put the .crt file on it, go to the site, click the file and voila... It installs on the device.
Worked like a charm since I do not have an SD card with me, but I needed to install the certificate.
Thanks for the comments above. I had a .cer file, and renaming it worked like a champ as well.
Bryan
gces said:
I was looking for a way to do this exact thing, and found a (potentially) easier way to install the certificate. If you have access to a web site, you can just put the .crt file on it, go to the site, click the file and voila... It installs on the device. ...
Click to expand...
Click to collapse
Thanks, this works.
To install a browser certificate into a pre-ICS ROM, use Portecle to add it to /system/etc/security/cacerts.bks.
Notes:
- obviously, ROOT is required to do this
- the keystore p/w is changeit
- In ICS a certificate can be simply added via Settings
The problem is only old stock browser sees installed certificate. This browser doesn't exist on Jelly Bean for Nexus 7. Google Chrome is default browser here.
Anyone knows a solution to this?
Thanks
Denis
!crazy said:
The problem is only old stock browser sees installed certificate. This browser doesn't exist on Jelly Bean for Nexus 7. Google Chrome is default browser here.
Anyone knows a solution to this?
Thanks
Denis
Click to expand...
Click to collapse
The solution could be to wait until the bug in Chrome is fixed.
web security
Web certificate and web site security have much need for everyone. IF any one have want web project and security you should hire developers.

Importing Certificates

I need to import a certificate for my WIFI. I can get this as a PEM or DER format certificate from our admins, which I can use on anything else from a laptop to a pda.
On the Nexus the certificate needs to be .p12 files (PKCS#12). I do not have one of these, nor can I get one, nor can I find a way to convert the current PEM/DER to one of these.
How do I do this? It seem pointless if the nexus requires a different format than that provided to people to work with all other devices. Admins are not going to start issuing a special format, just for nexus users, Especially when that format seems to need a private key in addition and/or another password too.
Anyone else managed to do this?
I installed a certificate (a .crt file) by opening it with the web browser (via HTTP). You could also try opening it in Astro or another file manager.
A lot of people have complained about this. Apparently you have to import it from the web browser. File and gmail apps don't seem to know how to handle the certs.
You can forward it to your gmail account then use the web browser to get to gmail and import it from there.
Hi Guys,
I don't mean to hijack the thread, I've been trying to find the full encryption standards and protocols supported by the nexus one and have not had much luck. I presume you guys might have an idea.
Anyone got a link ? Thanks for your help. Ash.
robert-qfh said:
I installed a certificate (a .crt file) by opening it with the web browser (via HTTP). You could also try opening it in Astro or another file manager.
Click to expand...
Click to collapse
UmbraeSoulsbane said:
A lot of people have complained about this. Apparently you have to import it from the web browser. File and gmail apps don't seem to know how to handle the certs.
You can forward it to your gmail account then use the web browser to get to gmail and import it from there.
Click to expand...
Click to collapse
I've tried opening with a few file browsers, no luck as they refuse to open them, tried various ways of opening with web browsers, no luck as all they want to do is save them, and then the file browsers dont want to open. Also tried email and opening through the web or client. No luck.
Can you guys break it down how you got it to work ?
Thanks
Ash.
Anyone know how to load a .crt and .ca certificates on the nexus one ?
I've tried doing everyway with and without the certificates.
Thanks
Ash.
Just tried uploading a .DER cert to my personal FTP and goto it via the browser and it simply opened it like a text file. .P12 files are recognised by the browser fine and the user is prompted for the passkey but that is expected as .P12 seem to be the only type of cert that works on Android.
You could try to manually modify wpa_supplicant.conf . Depending on the network configuration this may vary. This is the same way you would do it in Linux. I remember I did this in my G1 ( I dunno if you need root, my G1 was rooted anyway), but the location of the file was not in /etc like it is usually in most Linux. My conf looked like this:
network={
ssid="somenetworkWPA"
proto=RSN
key_mgmt=WPA-EAP
pairwise=CCMP
eap=PEAP
identity="[email protected]"
password="pass"
phase2="autheap=MSCHAPV2"
ca_cert="/sdcard/mycert.der"
}
There are plenty of samples and explanations around the net about changing this file. Hope this helps.
janfsd said:
You could try to manually modify wpa_supplicant.conf . Depending on the network configuration this may vary. This is the same way you would do it in Linux. I remember I did this in my G1 ( I dunno if you need root, my G1 was rooted anyway), but the location of the file was not in /etc like it is usually in most Linux.
Click to expand...
Click to collapse
It's /data/misc/wifi/wpa-supplicant.conf. It's owned by wifi:wifi with permissions 770. So it appears you'll need to be root.

[Q] Please help with question can not figure this out for the life of me!

Please help i have beanstown build 5 installed with the ad blocker the host file. It has blocked a few of my websites i need for work such as
clickbooth.com
w4.com when you go to login
and maxbounty.com
i am sure this is just a few. I have found host file but i have no idea how to edit this or correct the probelm without just deleting the file which would leave me vulnerable correct?
Can someone help and walk me thru how to correct this issue as i have never dealt with this type of thing before
Thank you very much and it will be appreciated.
I believe you can just delete it. Here is what I did
1. did not install the host file (or you can just delete it)
2. download and install adblock PLUS from adblock developer
3. activate it when I visit a page with lots of ads and turn it off when you need to use those redirect pages
xredjokerx said:
I believe you can just delete it. Here is what I did
1. did not install the host file (or you can just delete it)
2. download and install adblock PLUS from adblock developer
3. activate it when I visit a page with lots of ads and turn it off when you need to use those redirect pages
Click to expand...
Click to collapse
I can not do that because i use dolphin for Last pass accessibility. That ad block plus only works for firefox.
Any other ideas?
Reflash without it!!!!
Sent from my most awesome phone EVER!!!!
brennerj said:
I can not do that because i use dolphin for Last pass accessibility. That ad block plus only works for firefox.
Any other ideas?
Click to expand...
Click to collapse
I could delete it but then i will have ads so i do not want to do that.

[Q] Android Phoenix LG help.

So call me paranoid, but I have a number of questions on security and log/ user monitoring. A while back I was using my neighbor's network via wifi and long story short I felt almost like my androids apparently were acting funny and since resetting it and using my own 3g network don't seem to have the same issues. I use a LG Phoenix I got new in late 2011. What are some foreign hacking files to look for? I found a file with es file explorer named monkey... long story short what are some log and user monitoring apks that let me see foreign controllers changes and information logs and if my data is going anywhere I can see where its going, and lets me fully secure my phone. Please even if I have to delete factory files my phone is rooted and I use es file explorer not much of a hacker for now. Please understand. Also is there a way to save directly to my Google Drive? Maybe even run apps with data via gdrive? What are some things to check if a hacker added programs to my phone what are some files apks etc to look for thanks. What I meant about downloads is changing my android download directory path to directly automatically by default download to my gdrive cloud, if there's a way please share. Thank You.

Hosts file to block ads S9+

Just a thought, since the snapdragon version of the S9+ does not have root yet would it be possible to have an edited hosts file to block ads? Would it work to get the matching firmware from samfirm, add the edited hosts file to that and then flash with odin? Has anyone tried this? or is it not possible?
Just use stopad i been using that and haven't had any issues
Blokada.org
Blocks ads via local vpn. Easy to use, just follow directions on site. Best non root adblocker.
Is there a way to block ads with a custom hosts file where you can add entries and it runs not through local vpn? Only one vpn can run at a time so running a vpn service at the same time would not be possible. Without root the hosts file cannot be edited but is there another app or way to do this so that ads can be blocked as well as running a vpn service?

Categories

Resources