AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   URL Chat Block 3.1.0 (https://forums.alliedmods.net/showthread.php?t=151863)

minimoney1 02-28-2011 21:16

URL Chat Block 3.1.0
 
This plugin blocks most of the URL's that are posted in chat, and logs it, telling you who did it.

Installation

Put URLChatFilter.smx in sourcemod/plugins

Put ucb_whitelist.txt in sourcemod/configs

(Optional) Put URLChatFilter.sp in sourcemod/scripting



Cvars

sm_urlchatblock_enabled - Enable or disable the URL Chat Block plugin

sm_urlchatblock_version - The version of the URL Chat Block plugin.

sm_urlchatblock_use_immunity - Should this plugin use immunity to decide if someone can post a URL or not?

sm_urlchatblock_flags - Set of flags that get immunity from URL Chat Block.
Example: sm_urlchatblock_flags "b" would make clients with the generic flag be immune to this plugin.
No longer used.

sm_urlchatblock_show_message_to_author - An option to show message to the author so he/she would not realize the block

sm_urlchatblock_log - Enable or disable the logging of people's URL blocks

sm_urlchatblock_whitelist - Use a whitelist?

sm_urlchatblock_whitelist_path - The path to the whitelist file.

sm_urlchatblock_reloadflags - The flags necessary to reload the Url Chat Block config. No longer used.

sm_urlchatblock_autoupdate - Autoupdate?

Commands:

sm_ucb_reload - Reload the url chat block whitelist.

Overrides:
sm_urlchatblock_immune - Those who are immune to this chat block.
sm_ucb_reload - Access to reloading the config.

DOWNLOAD PLUGIN

VIEW ON GITHUB

Version History:
Code:

9/29/2012 - Version 3.1.0

9/29/2012 - Version 3.0.0

5/25/2012 - Version 2.2

5/24/2012 - Version 2.1

3/27/2012 - Version 2.0

3/25/2012 - Version 1.3

3/11/2012 - Version 1.2

3/11/2012 - Version 1.1

2/28/2011 - Initial Release (Version 0.1)

Additional Stuff:

Leonardo 03-01-2011 00:47

Re: URL Chat Block
 
can this plugin block links which not contains "www." and/or "http(s)://" ? also can it detect link like "some . awesome . website . cc" ?
it's a very hard work to detect url in chat messages... so may it be just a simple url blocker

Peace-Maker 03-02-2011 09:26

Re: URL Chat Block
 
You should use a regular expression instead of just checking for some toplevel domains.

Maybe this suffices.
Code:

(?<http>(http:[\/][\/]|www.)([a-z]|[A-Z]|[0-9]|[\/.]|[~])*)

PpZ | Iconoclast 03-07-2011 11:28

Re: URL Chat Block
 
Do admins have immunity? It would be great if this stopped regular pubs from posting URLs, but as an admin I should be able to post them if desired.

minimoney1 05-29-2011 14:18

Re: URL Chat Block
 
Quote:

Originally Posted by Leonardo (Post 1425872)
can this plugin block links which not contains "www." and/or "http(s)://" ? also can it detect link like "some . awesome . website . cc" ?
it's a very hard work to detect url in chat messages... so may it be just a simple url blocker

It does that, it detects most of the common parts in the url, like the .com/.cc/.co.
Quote:

Originally Posted by PpZ | Iconoclast (Post 1429327)
Do admins have immunity? It would be great if this stopped regular pubs from posting URLs, but as an admin I should be able to post them if desired.

Yes, admins do have immunity
Quote:

Originally Posted by Peace-Maker (Post 1426527)
You should use a regular expression instead of just checking for some toplevel domains.

Maybe this suffices.
Code:

(?<http>(http:[\/][\/]|www.)([a-z]|[A-Z]|[0-9]|[\/.]|[~])*)

I think the way I'm doing it is easier since most of the regexes don't detect all or just are not compatible with sourcemod; this would be the easiest and the most effective way

Peace-Maker 05-29-2011 16:53

Re: URL Chat Block
 
The regular expression i linked to is much more effective than just checking for some common url patterns. I could easily post a link like google.de/google/is/your/friend, since you didn't check the .de toplevel domain. The regex would filter that out either and sourcemod is pretty standard with regex compatability.

minimoney1 03-11-2012 13:28

Re: URL Chat Block
 
Version updated.
Please see the original (first) post to download the updated version.

Version updated to 1.2
Please see the original post to download the updated plugin.

banania 03-25-2012 14:39

Re: URL Chat Block
 
Hi,
Is there a log system in a txt file in order to know the people who put a url?

minimoney1 03-25-2012 17:51

Re: URL Chat Block
 
Quote:

Originally Posted by banania (Post 1675511)
Hi,
Is there a log system in a txt file in order to know the people who put a url?

It now does. Plugin updated.
Code:

Added CVAR sm_urlchatblock_log - Enable or disable the logging of people's URL blocks.

[PL]Luki 03-26-2012 15:48

Re: URL Chat Block
 
There should be an option to write to the sender's chat a normal chat message, so he will think that the message wasn't blocked and won't try to avoid it >:D


All times are GMT -4. The time now is 04:50.

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