Requirements :
- An OpenWRT/OpenWRT-based Router
- Ssh/telnet connection
- Internet connection
- Linux/BSD PC
wget https://raw.githubusercontent.com/Supatier/adblock.sh/master/adblock.sh
2. Send the file to the router
scp adblock.sh root@192.168.1.1:/etc/adblock.sh
3. Connect to your router
ssh root@192.168.1.1
4. Execute for the first time (it may take up to 5 mns)
sh /etc/adblock.sh -f
5. To update the block.host
sh /etc/adblock.sh -f
6. Tips
/etc/white.list # white list
/etc/black.list # black list
sh /etc/adblock.sh -r # reinstall
7. Note : Ads help fund usp
8. Todo
1. Cleanup code
2. Update README
3. Some adserver list failed to match the syntax
No comments :
Post a Comment