Block IP Pattern (With Spaces)
Is there any way to block ips shared like this.
91 87 88 92 OR 91 87 88 92 27015 I saw this in Alka Code, will this be helpful? PHP Code:
|
Re: Block IP Pattern (With Spaces)
#define PATTERN "(\d.*){9}"
I would recommend you this. It turns true when you've typed 9 or more numbers on chat. The order doesn't matter. |
Re: Block IP Pattern (With Spaces)
I don't know about Regex but both of these ideas will return false positives sometimes.
Idea #1: If someone writes 123.. the code will think he's advertising an IP, but he isn't. Idea #2: If someone writes 123456789 , the code will also think he's advertising, but in fact he isn't. |
Re: Block IP Pattern (With Spaces)
Quote:
|
Re: Block IP Pattern (With Spaces)
It's more like of both, anyway the best way for checking regex patterns is using a web-tool called RegexR.
|
Re: Block IP Pattern (With Spaces)
A quick search: https://forums.alliedmods.net/showpo...17&postcount=3
Code:
|
Re: Block IP Pattern (With Spaces)
Quote:
|
Re: Block IP Pattern (With Spaces)
Quote:
|
Re: Block IP Pattern (With Spaces)
Quote:
+ Can you add Whitelist, so I can whitelist my servers own IPs? |
Re: Block IP Pattern (With Spaces)
Code:
|
All times are GMT -4. The time now is 18:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.