Thread: Nulls

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Nulls 
    Felixia
    Guest
    My server is constantly getting spammed by nulls because people hate me (I guess). Does anyone have a decent system/code on blocking them?
    Reply With Quote  
     

  2. #2  
    +MoonSoul+
    Guest
    Ok il give u a simple anti syi i made had some help with it Cerdits- [trey from runelocus]

    this simple tutorial will only allow 1 connection per ip adress to prevent multi logging, syi, and other forms of socket flooding.

    this simply adds connections to an arraylist and then checks to see if there is already a connection on the list before allowing the player to connect.

    first, in the Server class, add these imports:

    Code:
    import java.util.List;
    import java.util.ArrayList;
    that or you can remove all of your utility imports and just add this:

    Code:
    import java.util.*;


    next, declare a new arraylist:

    Code:
    public static List connected = new ArrayList();

    now, search for:
    Code:
    if (true)
    and replace 'true' with:
    Code:
    if (!connected.contains(connectingHost))
    this checks the list to see if there is already a connection from that host.

    now everywhere in your run method that you see "connection from" add this line under it:
    Code:
    connections.add(connectingHost);



    next, open the Client class, and search for your destruct method:
    Code:
    public void destruct
    and under where you see something like "clienthandler (hostname) disconnected" under it add this line:
    Code:
    server.connected.remove(mySock.getInetAddress().getHostName());




    and that should take care of it.


    BE SURE YOUR FOLLOWING THE TUTORIAL CORRECTLY, NOT DOING SO COULD RESULT IN THE SERVER REJECTING CONNECTIONS WHEN IT SHOULDNT.




    enjoy, any errors or problems just post em.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Core's Avatar
    Join Date
    Sep 2007
    Posts
    4,194
    Thanks given
    11
    Thanks received
    393
    Rep Power
    1985
    Itz the anti leech in delta.
    Reply With Quote  
     

  4. #4  
    +MoonSoul+
    Guest
    Anti-Leech....

    Lol dude i made this method with my friend trey...... So yeah.

    Or you can use The most used one not made by me.
    Reply With Quote  
     

  5. #5  
    Felixia
    Guest
    Quote Originally Posted by Core View Post
    Itz the anti leech in delta.
    It isn't the anti-leech. People are attacking my server with some programs that create nulls.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Core's Avatar
    Join Date
    Sep 2007
    Posts
    4,194
    Thanks given
    11
    Thanks received
    393
    Rep Power
    1985
    Quote Originally Posted by Felixia View Post
    It isn't the anti-leech. People are attacking my server with some programs that create nulls.
    Wow your dumb lol...
    Reply With Quote  
     

  7. #7  
    Felixia
    Guest
    Quote Originally Posted by Core View Post
    Wow your dumb lol...
    How? I'm just starting what's happening..
    Reply With Quote  
     

  8. #8  
    +MoonSoul+
    Guest
    No leech means, like u took it and taking all cerdits for the method lmao, And me and trey made that method so i didnt leech it.
    Reply With Quote  
     

  9. #9  
    ( ͡° ͜ʖ ͡°)
    Edgeville's Avatar
    Join Date
    Nov 2007
    Posts
    2,453
    Thanks given
    80
    Thanks received
    428
    Rep Power
    2589
    Quote Originally Posted by +MoonSoul+ View Post
    No leech means, like u took it and taking all cerdits for the method lmao, And me and trey made that method so i didnt leech it.
    Core wasn't saying you leeched it. He was saying that the nulls are from the anti-leech in deltascape

    Attached image
    Reply With Quote  
     

  10. #10  
    +MoonSoul+
    Guest
    ahh ok hehe im stuiped lol. But yeah hehe
    Reply With Quote  
     

Page 1 of 2 12 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
  •