Login packets.
|
I was on my server today while I DC'ed randomly. I checked the CMD and there was a person connecting like crazy. I have 1 Connection Per IP and I have a Working Anti on Allgofree Blitzbot. Are there any other ways I can block these flooders? Please?
add my msn
i missed one more part
on the http://www.rune-server.org/showthread.php?t=191052
ther is some anti flood thing already in delta isnt ther? well ther is one in devo 7 etc.
bump
and in initialize() add...Code:public void AntiFlood() { for(int i = 0; i < Server.playerHandler.players.length; i++){ Player p = Server.playerHandler.players[i]; if(p != null && !p.disconnected && p.connectedFrom.equals(connectedFrom) && playerId != p.playerId && !connectedFrom.equals("localhost")){ sendMessage("Address in use!"); returnCode = 9; disconnected = true; return; } } }
yea it dosnt really stop them from connecting but it is 1 connection per ip.Code:AntiFlood();
ripped out of devo v7.
I already have 1 Connection Per IP but I added this anyway and I get 2 errors.
Code:client.java:3590: package Server.playerHandler does not exist for(int i = 0; i < Server.playerHandler.players.length; i++){ ^ client.java:3591: package Server does not exist Player p = Server.playerHandler.players[i]; if(p != null &&
You should have an list to store the hostname of the sockets connecting...
in effect rejecting the client and stopping it from going any futher then the accepting process...Code:if(list.contains(hostName)) socket.close();
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |