It would be great if everybody could set his/her own custom link class instead of 'spamspan' to prevent spam bots to detect the email addresses by recognizing the class="spamspan". Thx!
It would be great if everybody could set his/her own custom link class instead of 'spamspan' to prevent spam bots to detect the email addresses by recognizing the class="spamspan". Thx!
Comments
Comment #1
vitalie commentedDid the bots actually recognized it? Can you provide a patch?
Comment #2
mibfire commentedI dont know anything about this but if i should write a bot then the first would be to check this module to know how i can recognize the protection for emails. I can provide a patch of cos.
Comment #3
vitalie commentedOK, then I would like to question this further. You see, if I am to write a bot as you say, I can preg_match any class, knowing the structure of what's inside
<span class="spamspan"></span>.It seems to me that this leads to what's on the description page of this module:
Comment #4
mibfire commentedThe
<span class="anything"></span>could match with other else too, not just spamspan if you used regex. So if i wanna get only emails i couldnt use regex for this.But you are right in that we cant do 100% protection but we can increase the level of it.
Comment #5
vitalie commentedOK, I am all for increasing the level of it.
Here's the default output of spamspan:
My work email is <span class="spamspan"><span class="u">me</span> [at] <span class="d">example.com</span></span> and my home email is <span class="spamspan"><span class="u">me</span> [at] <span class="d">example.org</span></span>.As a bot, it is enough match
<span anything><span class="u">user</span>anything<span class="d">domain</span>. This way you avoid other spans and have your user and domain to put together as user@domain.I think a valid increase in protection would also set new classes instead of u, d, and maybe others that are now used (see dev version).
Comment #6
mibfire commentedand [at].:) So the complete list would be: spamspan, u, d, [at]
Comment #7
vitalie commentedyeah, [at] and [dot] are already configurable.
Here's what I believe to be the most complete output of spamspan:
<span class="spamspan"><span class="u">name</span> [at] <span class="d">example<span class="t"> [dot] </span>com</span><span class="h"> (subject: A%20Subject!, body: Some%20Body.) </span><span class="a"> (Email me)</span><span class="e"><!--id="myid" class="myclass"--></span></span>Original input:
<a id="myid" href="mailto:name@example.com?subject=A%20Subject!&body=Some%20Body." class="myclass">Email me</a>Comment #8
mibfire commentedlooks very amazing:)))