简体   繁体   中英

Can't spambots decode encoded email addresses?

I implemented an email encoder for my WordPress site, the plugin will convert an address to something like this

%6f%73%6f%72%69%6f%40%68%65%63%2e%63%6f

and decode it via a piece of JavaScript code

<span id="eeb-638789-855127"></span>
<script type="text/javascript">
document.getElementById("eeb-638789-855127").innerHTML = eval(decodeURIComponent("%6f%73%6f%72%69%6f%40%68%65%63%2e%63%6f"))
</script>

I was wondering why this is working to prevent spambots from harvesting emails. Can't spambots decode that encoded address to get the original one?

They could , and some probably do, it is just cheaper to get addresses from elsewhere instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM