Hide links from Google via JavaScript
问题 We have some links we want to hide from Google, using Javascript to "hide" the link but let it work for the real clients. I was told from the SEO agency that the best method is to base64 encode the link and call it via javascript: <a data-href="RdcDovL1N0YWdpbmc...base64...hhcmRpbmctaGVycmVuLWhlbaQtMTgyMDg3" href="#">Link</a> <script> <!-- var _dlist = document.getElementsByTagName('A'); for(i=0;i<_dlist.length;i++) { var _data = _dlist[i].getAttribute( 'data-href' ); if( _data !== 'null' ) {