Raised This Month: $12 Target: $400
 3% 

[REQ] Anti-advertiser [REQ]


Post New Thread Reply   
 
Thread Tools Display Modes
wickedd
Veteran Member
Join Date: Nov 2009
Old 02-03-2012 , 09:36   Re: [REQ] Anti-advertiser [REQ]
Reply With Quote #11

Read all of the post in that thread I posted, the op wanted to block ip's with spaces.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
killerftw
Senior Member
Join Date: Nov 2010
Old 02-04-2012 , 07:08   Re: [REQ] Anti-advertiser [REQ]
Reply With Quote #12

............................................. .......

Last edited by killerftw; 09-15-2012 at 04:42.
killerftw is offline
killerftw
Senior Member
Join Date: Nov 2010
Old 09-15-2012 , 04:44   Re: [REQ] Anti-advertiser [REQ]
Reply With Quote #13

Bump,

Reminder of what I exact need, a plugin that blocks a chat line if it has more than 10 numbers
killerftw is offline
tfk94
Veteran Member
Join Date: Jan 2011
Location: [url=http://www.gametrac
Old 09-15-2012 , 07:42   Re: [REQ] Anti-advertiser [REQ]
Reply With Quote #14

mhm use this plugin http://dox.abv.bg/files/dw?a=43a6a05e23
it is bulgarian and very succesful plugin i am very satisfied with it
u can choose for how many seconds u can gag the players which advertise ip-s and sites and u can also gag players which swear (u put the censored words in the ini file)
have fun

Last edited by tfk94; 09-15-2012 at 07:42.
tfk94 is offline
killerftw
Senior Member
Join Date: Nov 2010
Old 09-17-2012 , 14:17   Re: [REQ] Anti-advertiser [REQ]
Reply With Quote #15

Appreciated but I would like to get my idea done
killerftw is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 09-18-2012 , 12:43   Re: [REQ] Anti-advertiser [REQ]
Reply With Quote #16

Well, i've tried some methods to block IP advertising and the results are not so accurate. Using regex you can create a good pattern but there are still some cases left over, and using what you've said isn't good at all. I'm currently working on a method that can cover all(most?) scenarios.

So far it's working for:
(remember, it's working for any ip format. But one of ip block must contain at least 2 digits. I think it's useless to check for 1.2.3.4, plus the match results will be much inaccurate)
Code:
11.1.1.1
11.1.1.1:20715
11...1...1...1 (or any number of dots)
11/1/1/1
11 / 1 / 1 / 1 (any number of spaces and delimiters)
1/1-2-3/1-2/3 (any combination of delimiters)
11 1 1 1
11     1     1     1
22l2l2l2 (l - from leather. It can recognize letters and symbols delimiters too)
(i think any case from above can be matched with a complex regex pattern but the false detect will still remain if you use letters too)

FALSE DETECT: If any player will write a number of 2 digits in a phrase and another 3 digits (or any combination) that will look like an IP adress (11 1 1 1) no matter where, it will still detect as an IP advertise. FIXED!

Update: v1.1
-Fixed false detect if you write mutiple numbers / ip blocks in one sentence
-Fixed number spam detection as an advertise ( 2 2 2 2 2 2 , 111 111 111 111, and so...)

For proper detection ip must contain:
-3 different digits if any delimiters are used (like "1-2-3/1-1/1/1")
-4 different blocks if ip looks like "222 123 2 5" <- This prevents some false detect but still remains ~2%(?) chance that will miss some IPs
(took some random 50 servers and 1 server had 2 same blocks ..15.15..)
FIXED!

Update2: v1.2
-Now you can have 2 same blocks (that means 3 different blocks), lowering the chance to miss some IPs (222 123 123 5)

Update3: - v1.3 NOT RELEASED
-Implemented punish system ( block advertise / warn / kick - after 'x' amount of warnings)
-Added websites advertise check (supports almost all formats? http://x.com | www.x.com | x.com | x.00host.com | x.go.im/whatever/... ) more domains can be added
-Optimized code
-Added log for possible adverts. Can be used for future developments and bug-fixes
-Moved all configs to a separate file (websites domains / whitelist )
-Added the possibility to whitelist websites (server websites? or sponsors websites?)
-Possible integration of ColorChat?

Willing to add:
-A system (menu) for on the fly verification if any admins are online and someone make a possible advertise ( option to post the actual line if no advertise was detected )
-Punish system [with counter?] ( kick / ban / chat restrict )

PLUGIN RELEASED -> https://forums.alliedmods.net/showthread.php?t=197331
Attached Files
File Type: sma Get Plugin or Get Source (block_ipadv.sma - 525 views - 2.9 KB)
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 10-01-2012 at 13:32.
Alka is offline
tfk94
Veteran Member
Join Date: Jan 2011
Location: [url=http://www.gametrac
Old 09-18-2012 , 16:16   Re: [REQ] Anti-advertiser [REQ]
Reply With Quote #17

i cant understand why are u trying to create a new plugin while there is already a very succesfull one
http://dox.abv.bg/files/dw?a=43a6a05e23 this will do a perfect job for you
i told u it blocks all kind of ips sites and e.t.c
i havent seen even 1 advertising in my server after i put this ..
tfk94 is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 09-18-2012 , 17:59   Re: [REQ] Anti-advertiser [REQ]
Reply With Quote #18

Translation to English (all files).

Put NMS_BADWORDS & NMS_EXCEPTIONS in addons>amxmodx>configs
Attached Files
File Type: sma Get Plugin or Get Source (anti-advertisement.sma - 343 views - 12.7 KB)
File Type: ini NMS_BADWORDS.ini (108 Bytes, 70 views)
File Type: ini NMS_EXCEPTIONS.ini (134 Bytes, 70 views)
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!

Last edited by quilhos; 09-18-2012 at 17:59.
quilhos is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 09-18-2012 , 18:08   Re: [REQ] Anti-advertiser [REQ]
Reply With Quote #19

Quote:
Originally Posted by tfk94 View Post
i cant understand why are u trying to create a new plugin while there is already a very succesfull one
http://dox.abv.bg/files/dw?a=43a6a05e23 this will do a perfect job for you
i told u it blocks all kind of ips sites and e.t.c
i havent seen even 1 advertising in my server after i put this ..
First, i like to make my own plugins and think my own methods. Second, that plugin doesn't recognize all kind of IPs like 123.2.2.2 or 1-2/1-3-3/1-2/1 and it has the same bug like the one described by me. Also if he wants only IP advertising block that whole plugin it's kinda useless
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 09-18-2012 at 18:53.
Alka is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 09-18-2012 , 18:13   Re: [REQ] Anti-advertiser [REQ]
Reply With Quote #20

I only do the translation for a better understanding of the plugin to all users of this forum who dont understand well pawn.
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!
quilhos is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode