swetoast
Guest
So here is my minimal ~155 lines adblocker called ublockr.
Features
1st line downloads the script, 2nd line downloads the config, 3rd line makes the script executable, 4 line adds it to services to run on midnight every night (only run if you have a services-start at config directory on asuswrt-merlin)
Padavan users check here for installation instructions
https://gitlab.com/spitfire-project/ublockr/blob/master/README.md
Notes
too configure ublockr see the ublockr.cfg files for options AsusWRT not Merlin users have to specify others due to broken system detetection, the parameter to what lan interface ublockr uses set nic parameter to use the lan interface to the interface used for lan.
Planned features
Incase you want to uninstall ublockr edit /jffs/scripts/services-start and remove the entry of ublockr
Features
- Blocks around 85 to 100k hosts
- IPv6 Support
- uses Pixelserv-TLS
- Whitelist filter
- Automated System Detection (Padavan / OpenWrt / ASUSWRT-Merlin)
- Configuration file for settings.
- Self-Update using -update as switch
- A router supporting entware
- A usb drive mounted on system with swap setup on it.
- Changing port from 80 to another port number
- Basic knowledge of linux
1st line downloads the script, 2nd line downloads the config, 3rd line makes the script executable, 4 line adds it to services to run on midnight every night (only run if you have a services-start at config directory on asuswrt-merlin)
Padavan users check here for installation instructions
https://gitlab.com/spitfire-project/ublockr/blob/master/README.md
Code:
wget https://gitlab.com/spitfire-project/ublockr/raw/master/ublockr -O /opt/bin/ublockr --no-check-certificate
wget https://gitlab.com/spitfire-project/ublockr/raw/master/ublockr.cfg -O /opt/etc/ublockr.cfg --no-check-certificate
chmod +x /opt/bin/ublockr
echo "cru a ublockr "0 0 * * * /opt/bin/ublockr" >> /jffs/scripts/services-start
Notes
too configure ublockr see the ublockr.cfg files for options AsusWRT not Merlin users have to specify others due to broken system detetection, the parameter to what lan interface ublockr uses set nic parameter to use the lan interface to the interface used for lan.
- AsusWRT uses br0
- Padavan uses br0
- Openwrt uses br-lan
Planned features
- Verify list integrity in case of defunct lists
Incase you want to uninstall ublockr edit /jffs/scripts/services-start and remove the entry of ublockr
Code:
rm /opt/bin/ublockr
rm /opt/etc/ublockr.cfg
rm -r /opt/var/cache/ublockr
Last edited: