0
这个JavaScript hack足以掩盖从机器人的mailto链接吗?
// contact link -- no peeking!
$('.footer a.peek').click(function(){
$(this).attr('href', atob('bWFpbHRvOmRvbnRzdGVhbEBtZS5jb20='));
});
$('.footer a.peek').focusout(function(){
$(this).attr('href', '#');
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="footer">
<a class="peek" href="#">Contact Me</a>
</div>
它肯定会减少机器人的数量,因为大多数仍然不运行JS ... – dandavis