https://github.com/masterhide/block-publictorrent-iptables
A script to block public torrent using iptables and hosts file.
https://github.com/masterhide/block-publictorrent-iptables
Last synced: 11 months ago
JSON representation
A script to block public torrent using iptables and hosts file.
- Host: GitHub
- URL: https://github.com/masterhide/block-publictorrent-iptables
- Owner: MasterHide
- License: mit
- Created: 2025-01-12T03:37:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-08T02:30:41.000Z (12 months ago)
- Last Synced: 2025-06-10T14:09:51.334Z (12 months ago)
- Language: Shell
- Homepage:
- Size: 388 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
BLOCK-PUBLIC-TORRENT By MasterHide
x404
# ๐ สสแดแดแด แดแดสสษชแด แดแดสสแดษดแด
##### **BLOCK-PUBLIC-TORRENT is a powerful script designed to block public torrent traffic, helping you prevent DMCA complaints and reducing unwanted network traffic. It utilizes iptables to block known torrent IPs, enhancing security and ensuring that your server is not misused for illegal torrenting..**

### ๐ Install & Upgrade (ANY)
```
sudo wget https://github.com/MasterHide/block-publictorrent-iptables/raw/main/bt.sh && sudo chmod +x bt.sh && sudo bash bt.sh
```
### ๐ Remove Script (X-UI)
```
wget -q -O uninstall_all.sh https://raw.githubusercontent.com/MasterHide/block-publictorrent-iptables/main/uninstall_all.sh && chmod +x uninstall_all.sh && sudo ./uninstall_all.sh && rm -f uninstall_all.sh bt.sh hostsTrackers cleanup_hosts.sh.save /home/ubuntu/bmenu.sh
```
### ๐ /etc/hosts Cleanup (For hiddify Users)
```
sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/MasterHide/block-publictorrent-iptables/main/cleanup_hosts.sh)"
```
### ๐ & Run this for complete removal (For hiddify Users)
```
rm -f uninstall_all.sh && rm -f bt.sh && rm -f hostsTrackers && rm -f cleanup_hosts.sh.save && rm -f bmenu.sh
```