how to make counter for ip #+reps
#1

Hello guys i got an idea to prevent the attackers but im stucked , the idea is like that on the attacker trying to connect under OnPlayerConnect ,i need to count his ip if his ip connected more than 2 time that mean attacker then ban playerid ,anyone can help , and could this helping?
So i need to get the player ip and save it then after 2 sec if reconnected ban the ip!
Reply
#2

Just an idea, if two players from same IP connects then do this:

https://sampwiki.blast.hk/wiki/GetPlayerIp
- Save the player's IP's into an array for instance "new ipArray[MAX_PLAYERS];" or something like that. Then try to see if with strcmp (string comperer) if the IP's are same.

Not sure if this would work, probably higher chance that it wouldn't than it would but tried at least. :P
Reply
#3

Mmmmmm.. what about getplayerip and save it if reconnected in 2 sec after that ban anyone could help??
Reply
#4

This script comes with the server package by default. Look in the filterscripts folder.
Reply
#5

Btw attackers successing to reconnecting and can flooding
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)