2010-05-07, 22:45:23
(This post was last modified: 2010-05-07, 22:46:17 by newbieAug2010.)
This filter plugin protect all e-mail addresses automaticly over the complete website content.
Protected e-mail addresses
|
2010-05-07, 22:45:23
(This post was last modified: 2010-05-07, 22:46:17 by newbieAug2010.)
This filter plugin protect all e-mail addresses automaticly over the complete website content.
Hi,
it would be nice, if you would explain how it works and what it does exactly. Otherwise others may not want to use it, because the can't figure out what it does. Anyway, looks like it uses Code: str_replace(array('@','.'),array(' [at] ',' [dot] '),$email);
2011-03-08, 04:07:25
PHP encrypts your E-mail address in website content and generates the javascript that decrypts it. Most bots and spiders can't execute javascript and that is what makes this work. A visitor of your web page will not notice that you used this script as long as he/she has javascript enabled. The visitor will see "your-email-address [AT] example [DOT] com" in stead of the E-mail address if he/she has javascript disabled.
Function convert_mail(): Set up a regex constant to split an email address into name and domain parts. (See - http://de.wikipedia.org/wiki/E-Mail-Adresse) Part 1 : Match the name part - dash, dot or characters. Followed by a @ sign. Part 2 : One or more letters or dashes followed by a dot. The whole thing one or more times with between two and six letters at the end. (NB .museum) Part 3 : An optional ? followed by subject, bcc, cc or body. The email regexp is case insensitive and ignores whitespace. Next set up a regex for mailto: URLs. (See http://www.faqs.org/rfcs/rfc2368.html) This captures the name into the first group and the domain into the second. Example: javascript ON: info@excample.com javascript OFF: info [AT] excample [DOT] com source code: Code: <span id="e804265553"> This script was inspired by http://www.maurits.vdschee.nl/php_hide_email/
2011-03-08, 08:32:45
rainman: mails generated with user [AT] domain [DOT] tld are catched pretty easily by crawlers, and those encoded with hexadecimal values as catched by a bit more sophisticated harvesters.
I found out a way of protecting e-mail address using css, and this method works. Anyway, nice to see a useful plugin
Addons: blue business theme, Online Visitors, Notepad
|
« Next Oldest | Next Newest »
|