Thread: prevent being hacked on your Server

Results 1 to 8 of 8
  1. #1 prevent being hacked on your Server 
    'Pancakes
    Guest
    ~How to prevent being hacked on your server!


    1. Choose a good password!
    don't be like thisadascape owner, dada, password: dada. You want a 7-15 letter password. If you pick a password like ownage your chances of being hacked are 1 and 1000, if you pick a password like 0wnag3 your chances of being hacked are 1 and 4000 , if you pick a password like [email protected]!ab your chances of being hacked are 1 and 30000!

    2. The Perpetrator
    Go into Your server>connected from>your username
    Now you will see all of the connections that your username has connected from, it should be localhost, 127.0.0.1, or your ip. For example:
    Code:
    127.0.0.1
    localhost
    localhost
    127.0.0.1
    localhost
    the perpetrators ip!>24.149.54.21<
    You found the ip-address.

    3. The BanHammer
    You found his ip, its time to go bye bye for him.
    go into yourserver>data>bannedips, add his ip.
    Now i dont know why but some bannedip's dont work,
    but don't worry there's another way
    go into server.java, find [PHP] public void run() {[/PHP]
    now below [PHP] String connectingHost = s.getInetAddress().getHostName();
    [/PHP]
    Add,[PHP] if(/*connectingHost.startsWith("ipaddress") || connectingHost.equals("ipaddress")*/false) {[/PHP]

    4. Finished
    Make sure that NO one was ip banned or banned while you were hacked!
    for that go into yourserver>logs>banlogs.txt, you'll find a username for exmaple:
    yourusername bannedNo0b65
    You'v found the innocent player! now go into yourserver>data>bannedusers
    Erase there names off the bannedusers.txt and save it. now its safe
    run your server and have fun.

    P.S. If your good at coding go code so only you can go on your acc.

    ~This was no leeched made it by myself~

    -Made for newbies!
     

  2. #2  
    Registered Member
    ballin's Avatar
    Join Date
    Aug 2008
    Age
    26
    Posts
    1,225
    Thanks given
    43
    Thanks received
    94
    Rep Power
    417
    this is like...huh?...
     

  3. #3  
    senses fail
    Guest
    much faster way of doing this is..
    in bannedip.txt (somthing close to that)
    then add that number in.. >.<
     

  4. #4  
    'Pancakes
    Guest
    Quote Originally Posted by *ballin* View Post
    this is like...huh?...
    ...Read the tutorial again slowly if you didn't get it
     

  5. #5  
    Banned

    Join Date
    Mar 2008
    Posts
    2,595
    Thanks given
    128
    Thanks received
    191
    Rep Power
    0
    err:

    if(/*connectingHost.startsWith("ipaddress") || connectingHost.equals("ipaddress")*/false) {
     

  6. #6  
    'Pancakes
    Guest
    no error i compiled it myself works fine on figmentscape 4.5
     

  7. #7  
    Registered Member

    Join Date
    Jun 2007
    Posts
    2,237
    Thanks given
    267
    Thanks received
    411
    Rep Power
    1283
    Quote Originally Posted by 'Pancakes View Post
    no error i compiled it myself works fine on figmentscape 4.5
    The problem with this is that you are putting the data inside a comment block.
    The compiler will ignore this and it will not be transfered to bytecode therefor it is a waste of space
    Don't worry, Be happy.
     

  8. #8  
    Shelton
    Guest
    if(/*connectingHost.startsWith("ipaddress") || connectingHost.equals("ipaddress")*/false) {

    would be

    if(connectingHost.startsWith("localhost") || connectingHost.equals("127.0.0.1") == false) {


    .. jk

    if(connectingHost.startsWith("bannedip1") == true || connectingHost.equals("bannedip2") == true)
    {
    return;
    }
     


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
  •