Trying to prevent web scrapers/crawlers from grabbing this URL that’s located in an anchor tag. I don’t want to hide the icon from the page itself, just from the HTML.
<a class="link" href="/hide_this_link_from_html"><img src="printIcon.jpg"/></a>
Trying to prevent web scrapers/crawlers from grabbing this URL that’s located in an anchor tag. I don’t want to hide the icon from the page itself, just from the HTML.
<a class="link" href="/hide_this_link_from_html"><img src="printIcon.jpg"/></a>
2
Answers
But the best way to prevent search engines from scanning your page is to create a robot.txt file on your site. see https://www.robotstxt.org/ for usage).
JavaScript.