Link to home
Start Free TrialLog in
Avatar of Melody Scott
Melody ScottFlag for United States of America

asked on

Obfuscated mail to link showing as error on site map

Hi, on the header of my pages I have obfuscated text for my mailto link.

But then when I do a link check or a site map, I get an error. What can I do to avoid that?

<url>
            <loc>https://www.magickitchen.com/menu/seniors-gifts/mailto&;</loc>
            <lastmod>1970-01-01T21:09:44+00:00</lastmod>
            <changefreq>weekly</changefreq>
            <priority>0.43</priority>
      </url>

the code on the page is: <!-- googleoff: all-->
<a href='mailto&#58;I&#37;4EFO&#64;%&#52;DA&#71;&#73;C&#75;I&#37;54&#37;43H%&#52;&#53;&#78;%2E%&#52;&#51;O%4D'>I&#78;&#70;O&#64;M&#65;GI&#67;K&#73;TCH&#69;N&#46;C&#79;M</a>
<!-- googleon: all-->
Avatar of Dr. Klahn
Dr. Klahn

There appears to be a closing quote missing in the anchor.

... &#79;M  CLOSING QUOTE MISSING HERE  </a>

Open in new window


Do note that it takes more than this to fool a modern bot.  In the past some bots would not convert HTML entities, but now they do; defenses such as CAPTCHA became available and now bots are hungry for any valid email address.  A better approach is a "email me" page protected by a CAPTCHA.
I get an error

Show us the error message, please.

Have you tried to add a simple colon ':' after the mailto instead? like :

<a href='mailto:I&#37;4EFO&#64;%&#52;DA&#71;&#73;C&#75;I&#37;54&#37;43H%&#52;&#53;&#78;%2E%&#52;&#51;O%4D'>I&#78;&#70;O&#64;M&#65;GI&#67;K&#73;TCH&#69;N&#46;C&#79;M</a>

Open in new window

Avatar of Melody Scott

ASKER

Zakaria Acharki This was the error.

<url>
            <loc>https://www.magickitchen.com/menu/seniors-gifts/mailto&;</loc>
            <lastmod>1970-01-01T21:09:44+00:00</lastmod>
            <changefreq>weekly</changefreq>
            <priority>0.43</priority>
      </url>
Do you mean you're not getting the full link?
Hi, all, I am trying this instead, then running the sitemap generator to see if it issues any errors. http://joemaller.com/js-mailer.shtml
ASKER CERTIFIED SOLUTION
Avatar of lenamtl
lenamtl
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks! Zakaria, sorry I didn't get back to you. That was showing as a broken link, on both the sitemap generator and my link checker. Just running a link check now, and the new javascript seems to be ok.
Thanks, the solution was to use different code, and lenamtl got the closest.
Glad we could help, happy coding.