Skip to content

EnergizedProtection/magisk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cover

Energized Protection - Magisk ⚡

Version Version _time_stamp_ _time_stamp_
ad.porn.malware blocking.
This repository consolidates several reputable filters, and merges them into couple of protection packs with duplicates and dead/inactive domains removed. A variety of tailored packs are provided.

A Trio Project with ❤ from Bangladesh, India & Zanzibar.

Features

  • hosts based: based on Hosts file, all the bad stuffs blocked with 0.0.0.0
  • any device: compatible with all devices, regardless of OS.
  • blockings: strictly blocks advertisements, malwares, spams, statistics & trackers on both web browsing and applications.
  • multiple formats: different variants for different devices.
  • speed you need: reduces page loading time upto half of its actual time!
  • privacy: with all these annoyances blocking, it also increases privacy.
  • saves expense: greatly decreases data consumption saving expense.
  • clean: no extra abracadabra!

Requirements

  • Use Magisk v20.4 for better compatibility.
  • Magisk v20.0 - 20.3 users are required to install Busybox for Android NDK module, unless the module won't work.

Run

  • First Enable Systemless Hosts in Magisk Manager
  • Open terminal then type:
su  
ep -h

or

su -c ep -h

Usage:

Script arguments

Usage: ep [options...]
 -b, --black <domain(s)> 
       >> Instantly add the domain(s) to hosts.
       > e.g., ep -b example.com new.example.com www.example.com
 -B, --blacklist 
       >> Add the domains in blacklist file to hosts.
       >> blacklist file in /sdcard/EnergizedProtection directory.
       > e.g., ep -B
 -c, --clear 
       >> Clear the hosts file and revert back to stock. 
       > e.g., ep -c
 -C, --config-file 
       >> Open and edit the config file.
       > e.g., ep -C 
 -e, --extension 
       >> Add extension pack(s) to the hosts.
       > e.g., 
         ep -e <porn-lite|pornlite>
         ep -e porn
         ep -e regional
         ep -e xtreme
         ep -e social
 -h, --help 
       >> Print help. 
 -i, --info
       >> Print all the information.
 -m, --menu 
       >> Show the full menu with more information.
       > e.g., ep -m 
 -o, --open 
       >> Open the hosts file.
       > e.g., ep -o
 -p, --pack <pack name> [-e|--extension] <extension pack name> 
       >> Download the pack and extension of your choice.
       > e.g., 
         ep -p spark
         ep -p blugo -e xtreme
         ep -p blu -e regional social  
 -r, --redirect
       >> Redirect the domains in redirectlist file to specific IPV4/V6.
       >> redirectlist file in /sdcard/EnergizedProtection directory.
       > e.g., ep -r
 -u, --update
       >> Update currently applied hosts pack and extension(s). 
       >> Also whitelist, blacklist and redirect domains to current IP.
       > e.g., ep -u
 
 -w, --white <domain(s)> 
       >> Instantly whitelist the domain(s) from hosts.
       > e.g., ep -w example.com new.example.com www.example.com
 -W, --whitelist 
       >> Whitelist the domains in whitelist file to hosts.
       >> whitelist file in /sdcard/EnergizedProtection directory.
       > e.g., ep -W 
 -bp, --backup
        >> Backup the current hosts setup.
        > e.g., ep -bp
 -ck, --check <domain>
        >> Check whether the domain is in the list.
        > e.g., ep -ck example.com
 -ip, --redirect-ip [-4|-v4|-6|-v6] <ipv4/ipv6>
        >> Change current redirection IP.
        > e.g., 
          ep -ip -4 127.0.0.1
          ep -ip -6 ::1  
 -ir, --instant-redirect [-4|-v4|-6|-v6] <domain(s)>
        >> Instantly redirect the domain(s) to specific IPV4/V6.
        > e.g., 
          ep -ir -4 127.0.0.1 example.com new.example.com
          ep -ir -6 ::1 example.com new.example.com
 -re, --restore
        >> Restore the backed up hosts setup.
        > e.g., ep -re
 -un, --uninstall
        >> Uninstall the module setup.
        > e.g., ep -un
 -v, --version
        >> Print version. 

Energized, energized, Ep, ep & epro would also work, as symlink.

  • Then follow the on screen prompts.

Config Setup

Only use true/false to enable/disable features.

# Check for hosts update on startup
checkHostsUpdate=true

Note. More options will be available shortly.

Uninstall

  • Run Uninstall option via main menu un or ep -un

Changelog

v.1.3.3

  • Added support for Android 11 and Magisk 21.x!
  • Updated user-agent for downloading hosts.
  • The hitWeb function shouldn't make you wait for long now.

v.1.3.2

  • Added missing cut alias. (Which was breaking domain verifying functions.)
  • Fixed missing systemless hosts print.

v.1.3.0

  • Added back Magisk v20.0 - 20.3 support.

*Magisk v20.4+ users won't require separate busybox module.

*Magisk v20.0-20.3 users will have to install Busybox for Android NDK module.

v.1.2.5

  • Added CLI Flag support.
  • No more separate busybox required for Magisk v20.4+. Magisk Busybox will be used by default.
  • Updated Magisk Template to v20.0+. No more support for Magisk <v20.0.
  • Added user config support.
  • Improved blacklist, whitelist and redirectlist functions.
  • Improved instant blacklist, whitelist and redirectlist functions.
  • Updated download links.
  • Improved current pack, extension and IP detection.
  • Added intelligent domain and IPV4 detection support.
  • Updated Redirection IP function.
  • Added more functions. Use ep -h or ep --help for more info.
  • Updated H&WB function to support automatic extension and current IP detection.
  • Improved and updated almost all of the functions to match new changes.
  • Fixed domain counting awk segmentation fault error.
  • UI revamped. A lot of things have been updated.
  • Beautify the module scripts.
  • Updated sleep parameters.
  • Script was re-written and lot of new patches have been applied.
  • Fixed new change related issues so far.
  • Script improvement and fix patches applied.

*Previous Changes | **Beta Builds and Changes

Check Energized


Check whether Energized Protection is working or not! Check via our checking page here.

Support


Maintaining a quality blocking project takes a lot of time. Energized Protection is completely independently funded. We fight for our users. This does mean however that we also have to spend our owns to pay the bills. This is where you can help: by chipping in you can ensure more time is spent improving Energized rather than dealing with distractions.

This donation is for our services, not for any pack, resource or any other mean. Your support will help us keep the project running and provide you quality service.

Disclaimer


Energized Protection Block Lists are basically blacklists files to block access to domains. If you don't know how it works, then please try this at your own risk. I won't be responsible for any damage or loss. Never forget to make backup.

License


The content of this project itself is licensed under the MIT license, and the underlying source code used to format and display that content is licensed under the CC BY-NC-SA 4.0 license.


Let's make an annoyance free better open internet, altogether!

A project by Ador with ❤