SA-MP Forums Archive
Hide IP address in my server - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Hide IP address in my server (/showthread.php?tid=65275)



Hide IP address in my server - tatane_speed - 11.02.2009

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?


Re: Hide IP address in my server - Mikep - 11.02.2009

I suppose you could block:

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

from chat..


Re: Hide IP address in my server - SuperS0nic - 11.02.2009

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


Re: Hide IP address in my server - tatane_speed - 11.02.2009

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 ?


Re: Hide IP address in my server - Mikep - 11.02.2009

People can't join 127.0.0.1 apart from you.


Re: Hide IP address in my server - SuperS0nic - 11.02.2009

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.


Re: Hide IP address in my server - SilentMouse - 11.02.2009

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 ***.***.***.***:*****


Re: Hide IP address in my server - SuperS0nic - 11.02.2009

Yea


Re: Hide IP address in my server - ShizNator - 11.02.2009

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.


Re: Hide IP address in my server - [RP]Rav - 11.02.2009

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;
}