Jump to content
  • 0

Kick players on certain IP block


Muffin Man

Question

Good day everyone :-)

How will I go about kicking players that are on a certain IP range?

I have the ranges, and kinda know my way around DarT, but not finding a way to create my own "config" for DarT to read, and kick a player that is in that range (And give a reason)
I am guessing I will have to make a private ban?

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

You could block them with the Windows firewall. If you have the IP's in a text file (one ip per line) use this script to read the file and add them to a Windows firewall rule;

@echo off
FOR /F "tokens=*" %%a IN (IPList.txt) DO CALL :blockip %%a
GOTO end

:blockip
SET ip=%1
ECHO blocking IP %ip%
netsh advfirewall firewall add rule name=IP_BLOCK action=block enable=yes dir=in localip=any remoteip="%ip%"

:end

The IPList.txt would look like this

99.99.99.99/24
8.8.8.8/32
10.99.0.0/16
5.5.5.5
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...