Thread: The REAL way to protect from illegal usernames - NO lag, 100% effective!

Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 33
  1. #11  
    Registered Member kiaz's Avatar
    Join Date
    Jun 2007
    Age
    37
    Posts
    29
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    This is what i got a while ago..
    Code:
                int UID = inStream.readDWord();
                if(UID == 99735086) { // syi's uid 99735086 siliabs uid 99735086
    				outstream.write(1337); 
    				BanHandler.uidBan(UID);
    				Session.getSession() = null;
    				Player.getPlayer() = null;
    
    				Player.getPlayer().disconnected = true;
    				return;
    			}
    here is a list for reference..
    [SYIpkpker+ ] = 99735086
    [SYIpkpker, ] = 99735086
    [SYIpkpker- ] = 99735086
    [SYIpkpker. ] = 99735086
    [SYIpkpker/ ] = 99735086
    [SYIpkpker0 ] = 99735086
    [SYIpkpker1 ] = 99735086
    [SYIpkpker2 ] = 99735086
    [SYIpkpker3 ] = 99735086
    [SYIpkpker4 ] = 99735086
    [SYIpkpker5 ] = 99735086
    [SYIpkpker6 ] = 99735086
    [SYIpkpker7 ] = 99735086
    [SYIpkpker8 ] = 99735086
    [SYIpkpker9 ] = 99735086
    [SYIpkpker; ] = 99735086
    [SYIpkpker< ] = 99735086
    [SYIpkpker= ] = 99735086
    [SYIpkpker> ] = 99735086
    [SYIpkpker? ] = 99735086
    [SYIpkpker@ ] = 99735086
    [SYIpkpkerA ] = 99735086
    [SYIpkpkerB ] = 99735086
    [SYIpkpkerC ] = 99735086
    [SYIpkpkerD ] = 99735086
    [SYIpkpkerE ] = 99735086
    [SYIpkpkerF ] = 99735086
    [SYIpkpkerG ] = 99735086
    [SYIpkpkerH ] = 99735086
    [SYIpkpkerI ] = 99735086
    [SYIpkpkerJ ] = 99735086
    [SYIpkpkerK ] = 99735086
    [SYIpkpkerL ] = 99735086
    [SYIpkpkerM ] = 99735086
    [SYIpkpkerO ] = 99735086
    [SYIpkpkerP ] = 99735086
    [SYIpkpkerQ ] = 99735086
    [SYIpkpkerR ] = 99735086
    [SYIpkpkerS ] = 99735086
    [SYIpkpkerT ] = 99735086
    [SYIpkpkerU ] = 99735086
    [SYIpkpkerV ] = 99735086
    [SYIpkpkerW ] = 99735086
    [SYIpkpkerX ] = 99735086
    [SYIpkpker[ ] = 99735086
    [SYIpkpker\ ] = 99735086
    [SYIpkpker] ] = 99735086
    [SYIpkpker_ ] = 99735086
    [SYIpkpker` ] = 99735086
    [SYIpkpkera ] = 99735086
    [SYIpkpkerb ] = 99735086
    [SYIpkpkerc ] = 99735086
    [SYIpkpkerd ] = 99735086
    [SYIpkpkere ] = 99735086
    [SYIpkpkerf ] = 99735086
    [SYIpkpkerh ] = 99735086
    [SYIpkpkeri ] = 99735086
    [SYIpkpkerj ] = 99735086
    [SYIpkpkerk ] = 99735086
    [SYIpkpkerl ] = 99735086
    [SYIpkpkerm ] = 99735086
    [SYIpkpkern ] = 99735086
    [SYIpkpkerp ] = 99735086
    [SYIpkpkerq ] = 99735086
    [SYIpkpkerr ] = 99735086
    [SYIpkpkers ] = 99735086
    [SYIpkpkert ] = 99735086
    [SYIpkpkeru ] = 99735086
    [SYIpkpkerv ] = 99735086
    [SYIpkpkerw ] = 99735086
    [SYIpkpkerx ] = 99735086
    [SYIpkpkerz ] = 99735086
    [SYIpkpker{ ] = 99735086
    [SYIpkpker| ] = 99735086
    [SYIpkpker} ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker
    ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker ] = 99735086
    [SYIpkpker" ] = 99735086
    [SYIpkpker# ] = 99735086
    [SYIpkpker$ ] = 99735086
    [SYIpkpker% ] = 99735086
    [SYIpkpker& ] = 99735086
    [SYIpkpker' ] = 99735086
    [SYIpkpker( ] = 99735086
    [SYIpkpker) ] = 99735086
    [SYIpkpker* ] = 99735086
    [SYIpkpker+ ] = 99735086
    [SYIpkpker, ] = 99735086
    [SilabSoft] = 99735086
    [SilabSoft ] = 99735086
    [SilabSoft ] = 99735086
    [SilabSoft
    ] = 99735086
    [SilabSoft ] = 99735086
    [SilabSoft ] = 99735086
    [SilabSoft ] = 99735086
    [SilabSoft ] = 99735086
    [SilabSoft ] = 99735086
    [SilabSoft ] = 99735086
    [SilabSoft ] = 99735086
    [SilabSoft ] = 99735086
    [SilabSoft ] = 99735086

    anyway thats gone off subject and im pritty sure that problems long over now...

    Again.. Nice work keep it up guys
     

  2. #12  
    Registered Member
    Oblakastouf's Avatar
    Join Date
    Mar 2007
    Age
    32
    Posts
    1,194
    Thanks given
    0
    Thanks received
    1
    Rep Power
    274
    You should allow for multiple letter strings by using .toCharArray(), then checknig for random chars inbetween the name using a nested for loop. Like, for instance,

    IFuMckBitMches

    Bad words.

    Possible solutions:

    Break each word down into the char array, remove all letters from the string exvept for the ones residing the the censored word

    Example:

    'F' 'U' 'C' 'K'

    IFuMckBitMches

    Would go to

    Fu'ckc

    .conatins('fu'ck'); == TRUE.
    Ban.
    bitc'h?

    Icbitc'h

    .contains(bitc'h)
    HUHS? TRUE!!!!
    BAN

    Yup.

    I'd code it but... nah.
    Um... Bored.
     

  3. #13  
    Registered Member
    Z's Avatar
    Join Date
    Jun 2007
    Age
    29
    Posts
    1,390
    Thanks given
    7
    Thanks received
    30
    Rep Power
    853
    lol thanks....that's not all the illegal stuff though
     

  4. #14  
    Registered Member
    Oblakastouf's Avatar
    Join Date
    Mar 2007
    Age
    32
    Posts
    1,194
    Thanks given
    0
    Thanks received
    1
    Rep Power
    274
    Quote Originally Posted by kiaz View Post
    This is what i got a while ago..
    Code:
                int UID = inStream.readDWord();
                if(UID == 99735086) { // syi's uid 99735086 siliabs uid 99735086
    				outstream.write(1337); 
    				BanHandler.uidBan(UID);
    				Session.getSession() = null;
    				Player.getPlayer() = null;
    
    				Player.getPlayer().disconnected = true;
    				return;
    			}
    here is a list for reference..



    anyway thats gone off subject and im pritty sure that problems long over now...

    Again.. Nice work keep it up guys

    You do realize that the UID relates to you and you only... Right?
    If you had been logging in with 385972y39t8hg2498hw9hg9aehg9ahg97asehg9unwe9u

    It would've been the same.
    Um... Bored.
     

  5. #15  
    Registered Member
    craig903's Avatar
    Join Date
    Sep 2007
    Age
    30
    Posts
    1,357
    Thanks given
    14
    Thanks received
    92
    Rep Power
    238
    if sly does only ude 1 uid then

    cant u just do someing like

    lawl = 1 uid before slys 1 btw
    lolol = 1 after slys uid

    if(uid >= lawl && uid <= lolol) {

    then put the return code to say something like invalid username??


    just a sergestion lawl
    Visit Rune Miracle Here
     

  6. #16  
    Registered Member Dakota Lesmercy's Avatar
    Join Date
    Sep 2007
    Posts
    289
    Thanks given
    0
    Thanks received
    0
    Rep Power
    13
    Great Job! R E P++

    BTW, will this help me "unlagg" the server even more? :O
     

  7. #17  
    Banned HEADLEY's Avatar
    Join Date
    Dec 2007
    Age
    28
    Posts
    366
    Thanks given
    5
    Thanks received
    1
    Rep Power
    0
    This Is quiet Sad, Sorry, But No one can Block SYI, SYI can change his Username, Anyway's This has already Been Released Multipable Time's.

    P.S (I Was wrong there is a way you can black SYIPkPKER when he logs in get his Ip And Ban It, Unless They are using a Dynamic IP, Also Mr Quarter Has released the program so there's going to be Multiple people trying to use it on server's they dis like).

    Thank's
    -Ryan
     

  8. #18  
    nitto jo
    Guest
    this kind of works only works after they log out but good i guess.
     

  9. #19  
    Retired. Stop PMing me.


    Galkon's Avatar
    Join Date
    Nov 2007
    Age
    17
    Posts
    7,526
    Thanks given
    1,805
    Thanks received
    2,830
    Rep Power
    5000
    Or you can add this...

    Code:
        if(playerName.contains("~") || playerName.contains("!") || playerName.contains("@") || playerName.contains("#") || playerName.contains("$") || playerName.contains("%") || playerName.contains("^") || playerName.contains("&") 
    	|| playerName.contains("*") || playerName.contains("=") || playerName.contains("+") || playerName.contains(".") || playerName.contains("/") || playerName.contains(",") || playerName.contains("?") || playerName.contains(">") 
    	|| playerName.contains("<") || playerName.contains("mod") || playerName.contains("admin") || playerName.contains("owner") || playerName.contains("Admin") || playerName.contains("}") || playerName.contains("{") 
    	|| playerName.contains("]") || playerName.contains("[") || playerName.contains("-") || playerName.contains("__") || playerName.contains("___") || playerName.contains("____") || playerName.contains("_____") || playerName.contains("SYI")
    	|| playerName.contains("syipkpker") || playerName.contains("nina")) {
    	{
    	    sendMessage("Come back with a name that doesn't contain symbols of any sort");
    	    if(checkbannedusers() != 5) {
    		appendToBanned(playerName);
    		checkbannedusers();
    	    }
    		disconnected = true;
    
    	}
        }
    Under: public boolean process()
    Attached image
     

  10. #20  
    Registered Member
    OldMercenary's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    315
    Thanks given
    1
    Thanks received
    4
    Rep Power
    78
    Quote Originally Posted by Galkon View Post
    Or you can add this...

    Code:
        if(playerName.contains("~") || playerName.contains("!") || playerName.contains("@") || playerName.contains("#") || playerName.contains("$") || playerName.contains("%") || playerName.contains("^") || playerName.contains("&") 
    	|| playerName.contains("*") || playerName.contains("=") || playerName.contains("+") || playerName.contains(".") || playerName.contains("/") || playerName.contains(",") || playerName.contains("?") || playerName.contains(">") 
    	|| playerName.contains("<") || playerName.contains("mod") || playerName.contains("admin") || playerName.contains("owner") || playerName.contains("Admin") || playerName.contains("}") || playerName.contains("{") 
    	|| playerName.contains("]") || playerName.contains("[") || playerName.contains("-") || playerName.contains("__") || playerName.contains("___") || playerName.contains("____") || playerName.contains("_____") || playerName.contains("SYI")
    	|| playerName.contains("syipkpker") || playerName.contains("nina")) {
    	{
    	    sendMessage("Come back with a name that doesn't contain symbols of any sort");
    	    if(checkbannedusers() != 5) {
    		appendToBanned(playerName);
    		checkbannedusers();
    	    }
    		disconnected = true;
    
    	}
        }
    Under: public boolean process()
    Putting it in the process will cause more lag, where as if its only called when the player logs in then it will cause very minimal time delay for the user aswell as hardly any more lag for the server.

    Also trying to stop SYIpkpker by banning his name is stupidly pointless, because of the way the program works (I'm not going to say how because there are enough assholes doing it already), you won't be able to stop it crashing your server because your server parses the connection and checks all the relevent data, so no matter what he will still connect and lag your server because it is still parsing the packets being sent... the only way to stop it is to check if the ip/name is banned BEFORE any of the parsing A.K.A in the server listener method is done.

    Example:
    Code:
    if(clientListener != null)
    {
    if(connectingAddress != "127.0.0.1") // banned ips
    {
    System.out.println("connection accepted.");
    } else {
    System.out.println("connection rejected.");
    }
    }
    if you reject the connection instantly before the server tries to parse anything then it wont cause the server to lag.
    *Please don't try adding this code, its just an example i have written here...
    OldMercenary
     

Page 2 of 4 FirstFirst 1234 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •