[SCRIPT][TOOL] ADitor - Easily edit your Hosts file

Search This thread

veez21

Senior Member
Feb 22, 2016
2,172
2,708
183
Guess Where
ADitor



We all know what AdBlock is, how its done and how it works.
The purpose of this script is to let you easily edit your /system/etc/hosts file that contains host sites or whatever they're called, either you can add one or remove one.

What we need:
Terminal Emulator or adb shell or anything that has a shell
Busybox
Root

How to use:
Copy the file to /system/bin or /system/xbin
Set permissions to 'rwxr-xr-x'
Go to Terminal Emulator
Then su
Then this one:
Code:
usage: aditor [-r] <host>
       aditor [-r] <host> <hosts file dir>

-r Unblock site

Example:
To block a site:
Code:
 aditor adfl.ly

To unblock:
Code:
 aditor -r adfl.ly

DOWNLOAD IN AFH
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    ADitor



    We all know what AdBlock is, how its done and how it works.
    The purpose of this script is to let you easily edit your /system/etc/hosts file that contains host sites or whatever they're called, either you can add one or remove one.

    What we need:
    Terminal Emulator or adb shell or anything that has a shell
    Busybox
    Root

    How to use:
    Copy the file to /system/bin or /system/xbin
    Set permissions to 'rwxr-xr-x'
    Go to Terminal Emulator
    Then su
    Then this one:
    Code:
    usage: aditor [-r] <host>
           aditor [-r] <host> <hosts file dir>
    
    -r Unblock site

    Example:
    To block a site:
    Code:
     aditor adfl.ly

    To unblock:
    Code:
     aditor -r adfl.ly

    DOWNLOAD IN AFH
    2
    Nice one.
    Since I access XDA too much (sometimes), I may use it along with Tasker to block the forum lol.
    1
    Nice one.
    Since I access XDA too much (sometimes), I may use it along with Tasker to block the forum lol.

    Lol. Actually, I've accidentally done that when I made this :laugh:
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone