1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Block Proxy

Discussion in 'Development' started by xXNiceAssassinlo YT, Jul 3, 2018.

  1. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    How would I block mcpeproxy.tk server proxy
     
    Levi likes this.
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    block mcpeproxy.tk's IP?
     
  3. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    Nu it’s a proxy server that has hacks that I want block from player joining to my server only from that server tho.
     
    Levi likes this.
  4. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    yeah just block that server's IP
    so the proxy users cant join your server
    see
    user IP = 1
    proxy ip = 2
    when user join using proxy their ip is 2
    if you block the proxy, they cant join
     
  5. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    How do I check if player is joined from other server
     
    Levi likes this.
  6. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    DataPacketReceiveEvent, check for LoginPacket::$serverAddress
     
    SleepSpace9 likes this.
  7. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    like this?
    PHP:
    public function onDataPacketReceive(DataPacketReceiveEvent $e): void{
    if(
    LoginPacket::$serverAddress == "mcpeproxy.tk"){
    //stuff
    }
    }
     
  8. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    Why don't you convert the IP to numbers?

    EDIT: Check if the packet is an instance of login packet. Like if($e->getPacket() instanceof LoginPacket){
     
  9. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    How would I find their number ip
     
  10. Primus

    Primus Zombie Pigman

    Messages:
    749
    Resolve domain (Google)
     
  11. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    ping proxy.tk
     
  12. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    Well, I am pretty sure you do not join the server with the IP mcpeproxy.tk, but with another one. Maybe this is a lobby to send players to the correct sub-servers and from the sub-server you select the server you want to hack on. I would just join my server with McpeProxy and then just ban my IP. There is no other way.
     
  13. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    Just ban IP address 174.138.125.58, that will at least block the free version of that proxy - it's a DigitalOcean server so it's static. The paid version might use a different IP, but I'm not paying to find out.
     
    HimbeersaftLP likes this.
  14. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    some free version will "self advertise"
    we can auto ban anyone who "self advertise" the proxy link
     
    HimbeersaftLP likes this.
  15. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    You could do that too ofc. Let's just hope svile keeps making money off it so he doesn't release the source code. I was surprised at how many of the hacks actually worked though...
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.