You get a bonus - 1 coin for daily activity. Now you have 1 coin

Why emails are hidden and how to hide an email on a site page

Practice



Apparently, due to the increasing frequency of sites being crawled by special bots that collect email addresses and other personal information from websites, a need has arisen for methods of hiding HTML code containing a link to an email address


I have compiled a list of ways to hide email addresses from page code, in order to minimize their visibility to spam bots. Each method has its own advantages and disadvantages, so I leave it up to the reader to decide which method suits them best

Regular

my-city@intellect.icu

/ * On-screen output * /
info@intellect.icu

Character substitution

v AT intellect DOT icu

Leave the name

address info

/ * On-screen output * /
address info


HEX character substitution

address info


Fake email addresses

infoREMOVETHIS@intellect.icu

/ * On-screen output * /
infoREMOVETHIS@intellect.icu


HTTP Redirect

HTTP Redirect
Use on the server side, for example a php script with a redirect

hender ("Location: mailto:info@intellect.icu");
exit ();
?>



Use Javascript

Bots won't always perform the computation to assemble the address, and consequently may not find it


var string1 = "info";
var string2 = "@";
var string3 = "intellect.icu";
var string4 = string1 + string2 + string3;
document.write ("" + string4 + "");


With the help of JavaScript, it's also possible to decode previously encoded addresses - this makes life harder for bots collecting email addresses

Using images with the email address - makes life harder for the bot

the page only displays a picture with the email address

using a CSS pseudo-element

for CSS 2, the following manipulations are possible
p:after { content: "foo40bar.baz"; }

write to me:

and a picture


Using graphics via js canvas

See also

  • [[b6841]]
  • [[b11166]]
  • [[b11329]]
  • [[b730]]
  • [[b8929]]
  • [[b11558]]
  • [[b5196]]
  • [[b11273]]
  • [[b6020]]
  • [[b11601]]
  • [[b11276]]
  • [[b11625]]
  • [[b11545]]
  • [[b11659]]
  • [[b11165]]
  • [[b4749]]
  • [[b11845]]
  • [[b6409]]
  • [[b5963]]
  • [[b4379]]

See also

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Computer networks"

Terms: Computer networks