[FilterScript] CIDR Ban - Ban precise IP ranges (VPN, ISP, ...).
#1

Hello everyone !

Here's my last release, a CIDR ban script.

What can it be used for ?
  • Ban precise IP ranges (from 1.2.3.4 to 1.2.3.42 for example).
  • Ban VPN or ISP ranges from your server.
Commands (rcon admin)
  • /bancidr [CIDR range] - Example : /bancidr 192.168.1.0/24 - Add the CIDR range to the ban list and kick all current players in this range.
  • /getcidr [Start IP] [End IP] - Example : /bancidr 192.168.1.0 - 192.168.1.255 - Get the CIDR range with a start and end IP (http request for the moment, was a bit lazy to write this function in pawn...).
How to ban VPNs
Kaisersouse provided a useful list containing VPN ranges (not all VPNs) : https://sampforum.blast.hk/showthread.php?tid=422675
Copy this list, remove all comments (# and the text after it) and paste it in the cidr-banlist.txt file in the scriptfiles folder (if cidr-banlist.txt doesn't exist, create it).

Required
Plugin
Regular Expressions by Fro1sha

Includes (for compiling only)
regex.inc by Fro1sha
cidr.inc by R@f

Download
V1.0 : Pwn on Pastebin
V1.0 : Pwn + amx on Solidfiles (read for use, plug'n'play)




Cheers,
R@f.
Reply
#2

Nice work
Reply
#3

Nice dude! I like how you incorporated my listing into a script. Very helpful!
Reply
#4

That's brilliant. Thank you!
Reply
#5

Encore de l'excellent travail, merci а toi.
Reply
#6

Wow, good job
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)