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

[ANY] Smart Link Remover


Post New Thread Reply   
 
Thread Tools Display Modes
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 12-22-2018 , 19:16   Re: [ANY] Smart Link Remover
Reply With Quote #61

Quote:
Originally Posted by xSaG View Post
fix whitelist?

Don`t work
I'm having the same problem, links that I put in Whitelist do not work, the plugin still removes.
paulo_crash is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 02-19-2020 , 13:22   Re: [ANY] Smart Link Remover
Reply With Quote #62

Any fixes for the Whitelist? Still having problems.

It works only if I have root access on the server, players without root access cannot use links, even having the privileges.
paulo_crash is offline
borzaka
AlliedModders Donor
Join Date: May 2020
Location: Hungary
Old 06-03-2020 , 18:38   Re: [ANY] Smart Link Remover
Reply With Quote #63

Any update on fixing the whitelist? It doesn't work for me either.

My whitelist:
Code:
"SmartLinkRemover Whitelist"
{
        "twitch.tv"     ""
        "mixer.com"     ""
        "youtube.com"   ""
        "dlive.tv"      ""
        "facebook.com"  ""
        "fb.com"        ""
}
twitch.tv/xxx gets truncated to twitch, but I want to allow it to everybody.
borzaka is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 08-13-2020 , 10:49   Re: [ANY] Smart Link Remover
Reply With Quote #64

Hate to revive a really old thread but if anyone wants a regular expression to match any URLs (including invalid ones), look for my recent post.

Last edited by cravenge; 08-14-2020 at 03:26. Reason: Better and more accurate RegEx
cravenge is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 08-13-2020 , 14:14   Re: [ANY] Smart Link Remover
Reply With Quote #65

Quote:
Originally Posted by cravenge View Post
Hate to revive a really old thread but if anyone wants a regular expression to match any URLs (including invalid ones), here you go:
PHP Code:
[ ]*(?:(?:https?|ftp):[/]|(?:[\sa-z0-9]+[.]))(?:(?:[^\s()<>]+|[(](?:[^\s()<>]+|(?:[(][^\s()<>]+[)]))?[)])+(?:[(](?:[^\s()<>]+|(?:[(]?:[^\s()<>]+[)]))?[)]|[^\s`!()\[\]{};:'".,<>?«»“”‘’])) 
It's better to read this from a config since the compiler freaks out if you hardcode it.


I'll use this one, thanks.

[EDIT1]
Could you update to detect capitalized links? Currently it does not block.

https://prnt.sc/tz5afq

Last edited by paulo_crash; 08-13-2020 at 14:47.
paulo_crash is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 08-13-2020 , 16:44   Re: [ANY] Smart Link Remover
Reply With Quote #66

Quote:
Originally Posted by paulo_crash View Post
[EDIT1]
Could you update to detect capitalized links? Currently it does not block.

https://prnt.sc/tz5afq
The regular expression is compiled with PCRE_CASELESS in the plugin, isn't it? So it will ignore case sensitivity eventually.

Last edited by cravenge; 08-14-2020 at 03:27.
cravenge is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 08-25-2020 , 13:31   Re: [ANY] Smart Link Remover
Reply With Quote #67

Quote:
Originally Posted by cravenge View Post
Updated my post. It should now also detect ports at the end if others try to be sneaky. If you want, you can pluck out the last bit and make it another filter for separate checking.
Perfect, in case I can use it without modifying anything if I'm using SMAC, right?
paulo_crash is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 09-05-2020 , 04:14   Re: [ANY] Smart Link Remover
Reply With Quote #68

Quote:
Originally Posted by paulo_crash View Post
Perfect, in case I can use it without modifying anything if I'm using SMAC, right?
Sorry for the late reply but yes, SMAC won't be triggered anymore whenever a client's name has been changed due to having links in it in the first place.

Edit: Another update on the regular expression.
PHP Code:
(((https?|ftp):[/]{2})|([ ]*[a-z0-9]+[.]))([^ ()<>/]*[/]*([^ ()<>/]*[/])*)|(:[0-9]{1,5}) 

Last edited by cravenge; 09-05-2020 at 05:40. Reason: Polished RegEx
cravenge is offline
Andrzej
New Member
Join Date: Dec 2020
Location: Polska
Old 12-15-2020 , 05:44   Re: [ANY] Smart Link Remover
Reply With Quote #69

whitelist doesn't work. Mayby update?
Andrzej is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 12-15-2020 , 06:09   Re: [ANY] Smart Link Remover
Reply With Quote #70

Quote:
Originally Posted by Andrzej View Post
whitelist doesn't work. Mayby update?
We have passed the request over to our mind readers, but unfortunately, they're currently on vacation and the current estimate for their return to the office is January 2031.

Elaborate on what exactly that doesn't work with it?

Elaborate on how you expect it to work.

Elaborate on all the steps that you have taken in order to try making it work the way you want.

Provide a 100% exact copy of your configuration files, e.g. without any data redacted...

Provide information from the logging directory, at least the stuff mentioning the plugin's file name and a handful of lines up/down from there.


No one can really help you (or anyone else), with anything, when all you're saying say is "it doesn't work".

So, let me return your own kind of words/demands towards you: Maybe provide more information?
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].

Last edited by DarkDeviL; 12-15-2020 at 06:10.
DarkDeviL 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 10:06.


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