Allow custom spamspan class to make it harder for spambots to detect spamspan

Created on 26 January 2021, over 3 years ago
Updated 12 July 2023, 12 months ago

https://www.spamspan.com says:

Optional Configuration
If you wish to be fancy and confuse spambots even further, then there are several configuration variables available. Open the spamspan.js file with your favourite text editor and look for the following configuration options at the top of the file.

spamSpanMainClass
Class name of the main wrapper. Default value is "spamspan".
spamSpanUserClass
Class name of the user (the part before the @ sign) tag. Default value is "u".
spamSpanDomainClass
Class name of the domain (the part after the @ sign) tag. Default value is "d".
spamSpanAnchorTextClass
Class name of anchor text tag. Default value is "t".

How and where can I configure the optional configuration?
Is it possible to copy the spamspan.js file to own theme and make there the adjustments (change spamspan class to samething other)?

WHY to do this?

Spambots that can search <a href="mailto:xxx"> tags from websites can also search and find the html code
"<span class="spamspan">" in websites, then extract the value for spam.u and span.d class and collect all the spamspan protected mail adresses!
It is very easy to rewrite a bot to find spamspan() processed mail addressess. So they are not really protected!

We have to do this optional configuration and change classnames for span.u and span.d AND change the class name "spamspan" to something neutral (individually for each site).

Solutions to do this?

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria drupalfan2

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024