Suggestion Dissolow links without http

samo733792

Licensed
Licensed
Joined
Dec 12, 2025
Messages
7
Reaction score
0
Hey, for first, thanks for very usefull add-on.
I get it inly today, tryed and everything is ok but i sow, that user can post links like:
xen-soluce.com/forums/suggestions.71/post-thread
So without http or https and that is braking all for what we have it))
XenForo understanding that it is a link and add tag:
link
So add-on become usless.
 
Example:

Strange, i could't add tha same link here but can add it in my forum. You have newer version installed?))
It was starting with w w w and ending with .html

For blocking that, i had to add SPAM-Phrases but in this case Disallow Links didn't work at all.
 
I add such SPAM phrase
/(?<![a-z0-9@.\/-])(?:w w w\.)?((?!(?:[a-z0-9-]+\.)?(youtube\.com|youtu\.be|google\.[a-z.]{2,})(?:[\/:?#]|$))(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,})(?:\/[^\s<>"'()\[\]]+)?/iu
And it seams, it working as we need.
 
Yes, here we have another version, but I don't think that's it.
 
It blocking links like
w w w.mercedes-benz.co.uk/passengercars/my-area/my-dashboard.html
But didn't blcking links like
mercedes-benz.co.uk/passengercars/my-area/my-dashboard.html

This spam phrase worked very well, if you can use it

/(?<![a-z0-9@.\/-])(?:w w w\.)?((?!(?:[a-z0-9-]+\.)?(youtube\.com|youtu\.be|google\.[a-z.]{2,})(?:[\/:?#]|$))(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,})(?:\/[^\s<>"'()\[\]]+)?/iu
 
Unfortunately, this is not necessarily a link. : mercedes-benz.co.uk/passengercars/my-area
It could be a file.
If you do that, it will be blocked, but it could be a file and therefore not necessarily something you want to block. Furthermore, Xenforo does not consider it a link for the same reason I mentioned above.
 
Actually, only this part is included in the link: mercedes-benz.co.uk

So how do I know it's a link?
 
It blocking links like
w w w.mercedes-benz.co.uk/passengercars/my-area/my-dashboard.html
But didn't blcking links like
mercedes-benz.co.uk/passengercars/my-area/my-dashboard.html

This spam phrase worked very well, if you can use it

/(?<![a-z0-9@.\/-])(?:w w w\.)?((?!(?:[a-z0-9-]+\.)?(youtube\.com|youtu\.be|google\.[a-z.]{2,})(?:[\/:?#]|$))(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,})(?:\/[^\s<>"'()\[\]]+)?/iu
And I can even bypass your regex.

for example : https://example.com/test
 
Last edited:
Maybe you don't need it, but for example, if someone says to create an index.php file, it will be detected as a website when it isn't... it's just a file.
 
Even if you make a typo, you will write, for example: your sentence.So ....
It will be detected as a link, so no...
 
There are many cases where it is really not desirable to detect word.word as a link.
 
What about this one?

/(?<![a-z0-9@.\/-])((?!(?:[a-z0-9-]+\.)?(youtube\.com|youtu\.be|google\.[a-z.]{2,})(?:[\/:?#]|$))(?:w w w\.(?:[a-z0-9-]+\.)+[a-z]{2,}|(?:[a-z0-9-]+\.){2,}[a-z]{2,}))(?:\/[^\s<>"'()\[\]]+)?/iu
 
Nothing is hidden anymore, and besides, making regexes too complicated like that isn't necessarily recommended.

Really
Link :
No link : xen-soluce.com

After this add-on, I developed it for here at the beginning when we were receiving a lot of spam in the threads and in the contact us section. Once installed, I no longer received any spam.
 
Back
Top Bottom