An open API service indexing awesome lists of open source software.

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.

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..**
![Screenshot (1376)](https://github.com/user-attachments/assets/0beaebbd-1945-4569-b939-59d475196221)

### ๐Ÿ“Œ 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
```