Hide IP address in my server
#1

Hi,
I want to prevent the owner of the server to give there ip in my server.
Because since some time many server owner come in my server and give there ip.
This produces the drop of player in my server.
Can I prevent the display of IP address in my server?
If so, how?
Reply
#2

I suppose you could block:

:1
:2
:3
:4
:5
:6
:7
:8
:9

from chat..
Reply
#3

or you can make a better server cause ppl doesnt leave cause of server ads, they leave cause they might find your server noobish.
Reply
#4

Quote:
Originally Posted by Mikep
I suppose you could block:

:1
:2
:3
:4
:5
:6
:7
:8
:9

from chat..
I would to block for exemple 127.0.0.1. Can I ?
Reply
#5

People can't join 127.0.0.1 apart from you.
Reply
#6

The only you block is the :7777 or :4553 at the end, the ip can still be shown but most ppl would just see it as a failure and leave.
Or u can block messages that contains **.**.***.***:**** it should be possible and some country has diffrent ways of what their ip looks like but something like that would be good.
Reply
#7

Quote:
Originally Posted by SuperS0nic
The only you block is the :7777 or :4553 at the end, the ip can still be shown but most ppl would just see it as a failure and leave.
Or u can block messages that contains **.**.***.***:**** it should be possible and some country has diffrent ways of what their ip looks like but something like that would be good.
You mean ***.***.***.***:*****
Reply
#8

Yea
Reply
#9

Actually if you think about it all you gotta do is make a check that counts if theres 3 . and a :
in the text if yes don't send it and send a message to the player that wrote it that its not ok to advertise or kick or whatever you wanna do to him.
Reply
#10

a quick sketch

Код:
public OnPlayerText(playerid, text[])
{
  if (StringContainsIP(text)
    return 0;

  return 1;
}

stock StringContainsIP(string[])
{
  new dotcount= 0;

  for (new i = 0; i < sizeof(string); i++)
    if (string[i] == '.')
      dotcount++;
    
  if (dotcount >= 3 && strfind(string,":", true) > -1) // 3 dots and a :
    return 1;

  return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)