[Ads][Terminal] AdBlocker v1.0

Search This thread

Paget96

Recognized Developer / Inactive RC
Oct 29, 2013
12,635
34,793
27
Krusevac
picture.php

* Your warranty is now void.
* I am not responsible for bricked devices, dead SD cards, nuclear disasters
* Please do some research before using this mod!
* YOU are choosing to make these modifications,
* If you point the finger at me for messing up your device, I will laugh at you.


introduction.png

An ad blocker that uses the hosts file. The hosts file contains a list of mappings between hostnames and IP addresses. When an app requests an ad, that request is directed to 127.0.0.1 which does nothing. There are options to run a web server to respond to blocked hostnames and to direct requests to the IP address of your choosing. You can download hosts files from the app but it is possible to use your own and to add certain sites to the white- and black-lists.

========= Advantages =========
  • No background processes
  • Using less space than app (file size: ~7kb)

========= Requirements =========
  • Busybox v1.24.1(Recommended stericsons busybox HERE)
  • Minimal ~5MB free space on system partition for hosts file

How to use

1. Download adblocker.pdf from Android File Host
2. Remove .pdf extension
3. Copy adblocker file to /system/bin
4. Set permissions to 755
5. Open terminal and type
Code:
su
adblocker

donate_2.png


PAYPAL users can donate me using this link
http://xdaforums.com/donatetome.php?u=5514152
If you have issues, download paypal app from playstore, that will work :)
For US users:
"I could not use your paypal donation link or url as you already know as it's not possible to send a donation from USA. I logged into my paypal account and used the option to pay for goods or services to send you the funds."

Thanks a lot, guys

XDA:DevDB Information
AdBlocker, Tool/Utility for all devices (see above for details)

Contributors
Paget96
Source Code: https://github.com/Paget96/AdBlocker


Version Information
Status: Stable
Current Stable Version: v1.0
Stable Release Date: 2016-01-01

Created 2016-01-01
Last Updated 2016-01-01
 

LordArcadius

Senior Member
Mar 29, 2015
1,285
2,827
Delhi
www.vipuljha.com
That's something cool again! Once again you rocked that man. Keep your good work up always. Btw wishing you and whole XDA family a very happy new year and also congratulations for getting 14K+ Thanks. @Paget96 bro don't you think that its the time for your RD title too? xD
 
  • Like
Reactions: Paget96

Paget96

Recognized Developer / Inactive RC
Oct 29, 2013
12,635
34,793
27
Krusevac
That's something cool again! Once again you rocked that man. Keep your good work up always. Btw wishing you and whole XDA family a very happy new year and also congratulations for getting 14K+ Thanks. @Paget96 bro don't you think that its the time for your RD title too? xD
Thanks mate :D
I wanna wish you all the best too :D
For RD i need to work much more :)
not useless but bugged
What bugs ?? :)

Sent from my Nexus 5 using Tapatalk
 
  • Like
Reactions: LordArcadius

pavlepiramida

Senior Member
May 31, 2015
377
405
30
Novi Sad
Download busybox from the OP :D
That is main thing ;)

Yup did it and still getting wget error,I'll clean flash rom all over again,maybe it'll resolve the problem.

Update

Did clean flash,reinstalled BB and now it works flawless (I might have been tampering wit xbin too much and MIGHT have broken some BB links)

Srecna nova godina da si ziv zdrav i prav hahahh prav kontas hahhah!!! <3
 
Last edited:

newintage

Senior Member
Sep 13, 2015
562
459
Thanks mate :D
I wanna wish you all the best too :D
For RD i need to work much more :)

What bugs ?? :)

Sent from my Nexus 5 using Tapatalk

You're modifying hosts file right ?

There are 4 sources you used. All of them having same adresses to block. (They are not 100% same but they are having same sites to block.)

So there are double even triple entries on hosts file which causes slow downs & lags.
 

Paget96

Recognized Developer / Inactive RC
Oct 29, 2013
12,635
34,793
27
Krusevac
Yup did it and still getting wget error,I'll clean flash rom all over again,maybe it'll resolve the problem.

Update

Did clean flash,reinstalled BB and now it works flawless (I might have been tampering wit xbin too much and MIGHT have broken some BB links)

Srecna nova godina da si ziv zdrav i prav hahahh prav kontas hahhah!!! <3
It could be ;)

Hvala, takodje :D sve najbolje :D
You're modifying hosts file right ?

There are 4 sources you used. All of them having same adresses to block. (They are not 100% same but they are having same sites to block.)

So there are double even triple entries on hosts file which causes slow downs & lags.
Yes, modifying hosts for sure.

If you check source code on GitHub you will see that script by it self remove double lines, also remove empty lines and add one empty at the end of a file ;)
 
  • Like
Reactions: newintage

toole

Senior Member
Dec 1, 2013
476
100
Anyone tell me where to set permissions to 755

Sent from my ONE E1001 using Tapatalk
 

Top Liked Posts

  • There are no posts matching your filters.
  • 76
    picture.php

    * Your warranty is now void.
    * I am not responsible for bricked devices, dead SD cards, nuclear disasters
    * Please do some research before using this mod!
    * YOU are choosing to make these modifications,
    * If you point the finger at me for messing up your device, I will laugh at you.


    introduction.png

    An ad blocker that uses the hosts file. The hosts file contains a list of mappings between hostnames and IP addresses. When an app requests an ad, that request is directed to 127.0.0.1 which does nothing. There are options to run a web server to respond to blocked hostnames and to direct requests to the IP address of your choosing. You can download hosts files from the app but it is possible to use your own and to add certain sites to the white- and black-lists.

    ========= Advantages =========
    • No background processes
    • Using less space than app (file size: ~7kb)

    ========= Requirements =========
    • Busybox v1.24.1(Recommended stericsons busybox HERE)
    • Minimal ~5MB free space on system partition for hosts file

    How to use

    1. Download adblocker.pdf from Android File Host
    2. Remove .pdf extension
    3. Copy adblocker file to /system/bin
    4. Set permissions to 755
    5. Open terminal and type
    Code:
    su
    adblocker

    donate_2.png


    PAYPAL users can donate me using this link
    http://xdaforums.com/donatetome.php?u=5514152
    If you have issues, download paypal app from playstore, that will work :)
    For US users:
    "I could not use your paypal donation link or url as you already know as it's not possible to send a donation from USA. I logged into my paypal account and used the option to pay for goods or services to send you the funds."

    Thanks a lot, guys

    XDA:DevDB Information
    AdBlocker, Tool/Utility for all devices (see above for details)

    Contributors
    Paget96
    Source Code: https://github.com/Paget96/AdBlocker


    Version Information
    Status: Stable
    Current Stable Version: v1.0
    Stable Release Date: 2016-01-01

    Created 2016-01-01
    Last Updated 2016-01-01
    13
    picture.php
    v1.0 - initial version
    6
    This script will be moved soon as a L Speed app plugin.

    Thanks

    Sent from my Nexus 5 using Tapatalk
    4
    When Are you planning on updating? I've got ads on app which weren't having ads before. Seems an update is needed ????
    Soon, i am currently short with a time :)

    Sent from my Nexus 5 using Tapatalk