Anti Advertising without regex
#3

I've updated the detection to skip all non-IP numbers (non +/- 0-255).
Added more valid IP number detection (can't use numbers like 1-1.1-1.1-1.1-1).

Code:
[31/03/2016 10:02:50] 000.000.000.000:7777 - 1.
[31/03/2016 10:02:50] 0.0.0.0:7777 - 1.
[31/03/2016 10:02:50] 127.0.0.1:7777 - 1.
[31/03/2016 10:02:50] 127  .  0.  0.  1:  7777 - 1.
[31/03/2016 10:02:50] 255.255.255.255:7777 - 1.
[31/03/2016 10:02:50] PLS COME JOIN SERVER 37____187____22____119 - 1.
[31/03/2016 10:02:50] PLS COME JOIN SERVER 37 $$$$ 187 $$$$ 22 $$$$ 119 - 1.
[31/03/2016 10:02:50] 0000.000.000.0000:7777 - 0.
[31/03/2016 10:02:50] 255.256.255.255:7777 - 0.
[31/03/2016 10:02:50] -1.-1.-1.-1:7777 - 0.
[31/03/2016 10:02:50] 1-1.1-1.1-1.1-1:7777 - 0.
1 means its a valid IP.

FULL update at https://github.com/Kar2k/samp-anti-a...8d53a5b2dc5286
Reply


Messages In This Thread
Anti Advertising without regex - by Kar - 31.03.2016, 05:42
Re: Anti Advertising without regex - by xTURBOx - 31.03.2016, 08:29
Re: Anti Advertising without regex - by Kar - 31.03.2016, 14:05
Re: Anti Advertising without regex - by xTURBOx - 31.03.2016, 16:59
Re: Anti Advertising without regex - by SickAttack - 31.03.2016, 17:23
Re: Anti Advertising without regex - by Kar - 31.03.2016, 19:32
Re: Anti Advertising without regex - by Macluawn - 02.04.2016, 19:48
Re: Anti Advertising without regex - by Kar - 02.04.2016, 22:04
Re: Anti Advertising without regex - by kristo - 04.04.2016, 15:49
Re: Anti Advertising without regex - by Macluawn - 04.04.2016, 19:46
Re: Anti Advertising without regex - by Kar - 08.04.2016, 05:56
Re: Anti Advertising without regex - by Kar - 08.04.2016, 05:59
Re: Anti Advertising without regex - by Kar - 12.11.2017, 19:10
Re: Anti Advertising without regex - by OneDay - 12.11.2017, 19:18
Re: Anti Advertising without regex - by Kar - 12.11.2017, 21:23
Re: Anti Advertising without regex - by aoky - 12.11.2017, 21:25

Forum Jump:


Users browsing this thread: 6 Guest(s)