Hosts file - General Questions and Answers

Hi,
I want add some sites on my hosts file. It seems generated by Adaway and there is this message :
Please do not modify it directly, it will be overwritten when AdAway is applied again.
How can I add some sites and avoid the overwritting by adway ?
Thanks

Add them in AdAway.

Related

[MOD] Enable / Disable AdBlock in your rooted ROM

This MOD is two files:
Enable Adblock Update File
Disable Adblock Update File
Download this two files to your SD card, apply (flash from recovery) first file if you need AdBlock, apply second if you don't need AdBlock. This files works at all rooted Android ROM's and phones, not only for Desire.
Source for AdBlock hosts file:
http://www.mvps.org/winhelp2002/hosts.txt
http://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts
See also my B&W Theme for Desire :-D.
Thank you
Thanks, works like a charm!
this block adds in apps?
Works very good! Thank you!
pinkolin said:
This MOD is two files:
Enable Adblock Update File
Disable Adblock Update File
Download this two files to your SD card, apply (flash from recovery) first file if you need AdBlock, apply second if you don't need AdBlock. This files works at all rooted Android ROM's and phones, not only for Desire.
Source for AdBlock hosts file:
http://www.mvps.org/winhelp2002/hosts.txt
http://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts
See also my B&W Theme for Desire :-D.
Click to expand...
Click to collapse
where do we put hosts.txt file?
pinkolin, there are extra lines at the end of the hosts file:
Code:
</pre>
</body>
</html>
I suppose they should not be there, even if they do not cause issues.
kmetek said:
where do we put hosts.txt file?
Click to expand...
Click to collapse
It's in /system/etc but if you flash the ZIP file above, it will put the file at the right place by itself.
Thank you
what is the difference between adblock and ad free? does one block website adverts and the other block adverts in apps, or do they do the same thing?
Another way to do it...
And with this solution you can use AdFree with no freeze :
With ROM Manager, reboot in clockworkmod recovery...
From your computer with adb in DOS mode (adb-windows.exe for me) do this :
> adb-windows.exe shell
you should have now a # prompt
# mount /system
# mount /data
# cd /system/etc/
# mv hosts /data/data/
# ln -s /data/data/hosts hosts
# cd /
# umount /data
# umount /system
Now you can reboot your system from Clockworkmod recovery menu
Install ADFree from the market, and it should work.
It worked well for me.
Use it at your own risk.
Just to explain what it does :
When phone is working the partition /system is in read only. ADFree tries to write in it, it crash.
The solution I give is the same as for bootanimation.zip
Move the file "hosts" from read-only file-system (/system) to a writable file-system (/data) and make a symbolic link to it in /system to fake it position.
Phone believes "hosts" is still in /system. and ADFree can write in it because it is in /data for real....
Thank you so much Orphee. This eventually fixed it for me after struggling for a couple of hours without success. Couldn't write hosts to system/etc/ while system running; couldn't get Droid explorer to mount files (device in recovery mode). Tried with Root Explorer and couldn't copy hosts to /system/etc/ due to 'file too large/not enough room' error. Tried with adb and again couldn't successfully copy hosts file. All very frustrating, and I wish I understood the problem better.
Anyway, your symbolic link solution finally cracked it, though I had to try twice. FIrst time Adfree stalled. Second time I ran 'Revert' first and it then it worked fine.
Hi there. I can't get this to flash. I get:
Code:
E:Failure at line 3:
copy_dir PACKAGE:system SYSTEM:
Installation aborted.
What now?
Orphee said:
Another way to do it......
Click to expand...
Click to collapse
Best explanation and instructions I've seen on this - thanks a lot!
hey guys,
I don;'t know if you already knew this but,
if i've installed adfree on my phone the application
pingchat! wont work anymore it cant get connected to the server
to send the messages :s and when i delete adfree it works normally...
I used the 'enable' zip, but my hosts file still cannot be changed. Using CM 6.0.2
Can this be applied from ClockworkMod recovery mode to a stock Froyo sense rooted phone that is odexed and s-on?
Also not answered is does it block website ads when in browser or/& ads that appear when running apps.
Anyone???
Edit: Worked like a charm! No more damm ads.
Thanks
Worked like a charm!!
carlos67 said:
Can this be applied from ClockworkMod recovery mode to a stock Froyo sense rooted phone that is odexed and s-on?
Also not answered is does it block website ads when in browser or/& ads that appear when running apps.
Anyone???
Click to expand...
Click to collapse
Yes it blocks the ads from apps & browser
Woah! Great! so, no ads when im playng Angry Birds!
Pure Calendar Widget (Agenda)
I use the "Pure Calendar Widget (Agenda)" from the market, after flashing the MOD and rebooting the widget fails to load my calendar. Have flashed the disable MOD and it's back to working as normal. Weird as its a paid app and there is no advertising in it.

Revert Adblocking on WB 2.3.3

Hello guys
I really like this rom but there is one thing that takes the piss, i normally use adblock app from market so i can block and later on revert so i can use apps like TV Shows stream, Animewatch and stuff that need advertisements to work. I'd like to know the IP wolf used to revert his adblocking.
Thanks in advance
P.S: I didn't know where to place this so i went for the ''Apps'' section.
Isn't there a RESTORE on the app itself?
Sendou said:
Hello guys
I really like this rom but there is one thing that takes the piss, i normally use adblock app from market so i can block and later on revert so i can use apps like TV Shows stream, Animewatch and stuff that need advertisements to work. I'd like to know the IP wolf used to revert his adblocking.
Thanks in advance
P.S: I didn't know where to place this so i went for the ''Apps'' section.
Click to expand...
Click to collapse
ad block is directly at hosts file
location /system/etc/hosts
if you want to remove ad block temporarily just create a backup copy of hosts and write a new hosts file with just one line
127.0.0.1 localhost
that will remove native adblocking....
now if you want to use any ad blocking software you can also use that.
Thank you, Sir
Looks like it's the app that is malfunctioning.
edit the host files at /system/etc/hosts using root explorer.
anantshri said:
ad block is directly at hosts file
location /system/etc/hosts
if you want to remove ad block temporarily just create a backup copy of hosts and write a new hosts file with just one line
127.0.0.1 localhost
that will remove native adblocking....
now if you want to use any ad blocking software you can also use that.
Click to expand...
Click to collapse
thanks sir =)
anantshri said:
ad block is directly at hosts file
location /system/etc/hosts
if you want to remove ad block temporarily just create a backup copy of hosts and write a new hosts file with just one line
127.0.0.1 localhost
that will remove native adblocking....
now if you want to use any ad blocking software you can also use that.
Click to expand...
Click to collapse
thx..
it works on me~

The apps ad

How to Edit the HOST file to immune ad??
To edit hosts you have to be rooted. If you are rooted just get adfree from the market. It already blocks most ads and will update your hosts file automatically.

Rooted Nexus 6p (Nougat 7.1) Hosts file has no effect on chrome.

I'm a little stumped. I have adaway installed. It has no issue applying the changes to the hosts file. Then I go into Adaway preferences, turn off "Check for updates on start of adaway." I use root explorer to then edit the file and add my own entries like: 127.0.0.1 reddit.com. The file saves, but I can access any website for any of the entries I have put in the hosts file. Not really sure how to troubleshoot this. I have restarted the phone, I have wiped all data from chrome. Tried it again, and it still allows me to access sites I have entered into the hosts file. Any help would be appreciated.

Modify file hosts

Hi to all, after root permission, I used Lucky Patcher to block ads, in the previous smartphone worked perfectly, but not in this one.. file hosts remains empty, and cannot copy paste an old copy he. Any ideas?
Feduz said:
Hi to all, after root permission, I used Lucky Patcher to block ads, in the previous smartphone worked perfectly, but not in this one.. file hosts remains empty, and cannot copy paste an old copy he. Any ideas?
Click to expand...
Click to collapse
Enable "Systemless hosts" in Magisk settings.

Categories

Resources