开发者

Obfuscating email in html

I'm currently developing a website, into which I've included a filter that attempts to obfuscate any e-mail addresses present in the webpages it serves.

As it is now, it converts the addresses into images.

I've also seen a few other methods in use; some split the address into characters and use generated javascript to include it in the final document, but that requires javascript, so it's not that useful in my opinion. The upside is it can be used to create a working mailto-link.

Another method, quite similar to the above, uses hex-notation to markup the e-mail address. I'm not really convinced it will thwart any serious harvesters though.

Others utilize the human brains' ability to understand language, and will either replace characters like the @-symbol with words, or开发者_高级运维 separate the host and the username etc.

My question now is, how reliable is my method, of using generated images (whose filename do not give the address away) against scrapers, when I'm not using any distortion on the text in the images? Should I prefer a different method?

And as a continuation: if I wan't a fallback method, just in case the image creation should fail for some reason, which would be the smartest way to go?


Here you'll find many ways of obfuscating emails, and their effectiveness.

Hope it helps!


My question now is, how reliable is my method, of using generated images (whose filename do not give the address away) against scrapers, when I'm not using any distortion on the text in the images?

I don't have any data to back that up, but I would say: Quite reliable. Harvesters can get millions of addresses using "conventional" means; I don't think it's economically feasible for them to do image processing just to get a handful more.

And as a continuation: if I wan't a fallback method, just in case the image creation should fail for some reason, which would be the smartest way to go?

Use a good spam filter. :-) No, seriously, it's really hard keeping a mail address hidden from harvesters.


one possibility is to continue using the image, but replace it with text and a mailto link if javascript is enabled.


As long as you don't name the image something obvious, like emailadress.png, you should be pretty safe - I think.


I think it's all about providing some kind of 'are you human test' before you display the email or display the email in a way that is itself a test.

Thinking along the same lines maybe providing a link as the email address and running the tests before displaying the email might be a solution too.


As a user, an image-obfuscated email address is almost as useless as no email address. Whatever method you choose, I should ideally be given a mailto link, second best is some sort of your.name.69 AT longwebsitewhosnameicanteasilytranscribe.net style address.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜