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? Example: sm_urlchatblock_flags "b" would make clients with the generic flag be immune to this plugin. 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_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
|
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 |
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]|[\/.]|[~])*) |
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.
|
Re: URL Chat Block
Quote:
Quote:
Quote:
|
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.
|
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. |
Re: URL Chat Block
Hi,
Is there a log system in a txt file in order to know the people who put a url? |
Re: URL Chat Block
Quote:
Code:
Added CVAR sm_urlchatblock_log - Enable or disable the logging of people's URL blocks. |
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 09:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.