Advertisement
westor

Server BlackList Protection for RoBiN v1.0

Jan 17th, 2021
2,439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.06 KB | None | 0 0
  1. ; --- Settings ---
  2.  
  3. alias -l bl_file { return D:\blacklist.txt } ; Blacklist file location
  4. alias -l bl_time { return 1d } ; 1d = 1 day, change this to whatever the ban action supports
  5. alias -l bl_action { return GZLINE } ; You can use KILL,GLINE,SHUN,KLINE,ZLINE,GZLINE or what ever you wanna use as ban action, it is better to use GZLINE if you target to ban an IP address.
  6. alias -l bl_reason { return Possible "VPN/TOR/Proxy" has been detected }
  7.  
  8. ; --- Settings ---
  9.  
  10. ON *:SNOTICE:*Client connecting*: {
  11.   if (!$file($bl_file)) { return }
  12.  
  13.   var %nick = $gettok($1-,$calc($findtok($1-,$wildtok($1-,*@*,1,32),32) - 1),32)
  14.   var %host = $gettok($remove($wildtok($1-,*@*,1,32),$chr(40),$chr(41)),2,32)
  15.  
  16.   if (!%nick) && (!%host) { return }
  17.  
  18.   var %window = $+(@,$ticks,$ctime)
  19.  
  20.   window -hj10000000000 %window
  21.   loadbuf %window $qt($bl_file)
  22.  
  23.   var %r = $fline(%window,* $+ %host $+ *,0)
  24.  
  25.   window -c %window
  26.  
  27.   if (!%r) { return }
  28.  
  29.   if ($bl_action == KILL) { $bl_action %nick $bl_reason | return }
  30.  
  31.   $bl_action *@ $+ %host $bl_time : $+ $bl_reason
  32. }
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement