Raised This Month: $202 Target: $400
 50% 

URL Chat Block 3.1.0


Post New Thread Reply   
 
Thread Tools Display Modes
Author
minimoney1
SourceMod Donor
Join Date: Dec 2010
Plugin ID:
2257
Plugin Version:
3.1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    25 
    Plugin Description:
    Blocks people from posting a URL in text chat.
    Old 02-28-2011 , 21:16   URL Chat Block 3.1.0
    Reply With Quote #1

    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:

    Last edited by minimoney1; 09-29-2012 at 21:45. Reason: Update to 3.1.0
    minimoney1 is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: Soviet Union
    Old 03-01-2011 , 00:47   Re: URL Chat Block
    Reply With Quote #2

    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
    Leonardo is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 03-02-2011 , 09:26   Re: URL Chat Block
    Reply With Quote #3

    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]|[\/.]|[~])*)
    __________________
    Peace-Maker is offline
    PpZ | Iconoclast
    Senior Member
    Join Date: Feb 2008
    Old 03-07-2011 , 11:28   Re: URL Chat Block
    Reply With Quote #4

    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.
    __________________
    PpZ | Iconoclast is offline
    minimoney1
    SourceMod Donor
    Join Date: Dec 2010
    Old 05-29-2011 , 14:18   Re: URL Chat Block
    Reply With Quote #5

    Quote:
    Originally Posted by Leonardo View Post
    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 View Post
    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 View Post
    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
    minimoney1 is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 05-29-2011 , 16:53   Re: URL Chat Block
    Reply With Quote #6

    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.
    __________________
    Peace-Maker is offline
    minimoney1
    SourceMod Donor
    Join Date: Dec 2010
    Old 03-11-2012 , 13:28   Re: URL Chat Block
    Reply With Quote #7

    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.

    Last edited by minimoney1; 03-11-2012 at 14:08.
    minimoney1 is offline
    banania
    Member
    Join Date: Feb 2011
    Old 03-25-2012 , 14:39   Re: URL Chat Block
    Reply With Quote #8

    Hi,
    Is there a log system in a txt file in order to know the people who put a url?

    Last edited by banania; 03-25-2012 at 14:40.
    banania is offline
    minimoney1
    SourceMod Donor
    Join Date: Dec 2010
    Old 03-25-2012 , 17:51   Re: URL Chat Block
    Reply With Quote #9

    Quote:
    Originally Posted by banania View Post
    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.
    minimoney1 is offline
    [PL]Luki
    Member
    Join Date: Jun 2009
    Old 03-26-2012 , 15:48   Re: URL Chat Block
    Reply With Quote #10

    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 >
    [PL]Luki is offline
    Reply


    Thread Tools
    Display Modes

    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 15:46.


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