![]() Use this link to trackback from your own site. Posted in email, encryption, javascript, Programming, Rails, ruby.You could compress or format your code, you can also obfuscate your code with eval and decode it. I hope this helps out somebody out there, please leave a comment if you have any suggestions. Online Javascript Obfuscator makes javascript code harder to read in order to protect it. split ( ) # if linktext wasn't specified, throw email address builder into js document.write statement def js_antispam_email_link (email, linktext=email ) ![]() # Takes in an email address and (optionally) anchor text, # its purpose is to obfuscate email addresses so spiders and # spammers can't harvest them. This obfuscator will obfuscate emails within: Attributes (including mailto: links) Regular HTML text. Lets not even display the email address on the page at all, and use a little javascript to render the email address after the fact by breaking it up and putting it back together with javascript. This obfuscator replaces any occurances of email addresses within a document with a scrambled and random piece of JavaScript code that will print the email to the screen. However, some of us are just too darn busy to stop what we are doing every 2/3rds of a second to check our email but still need it for keeping in contact with friends, family, and business contacts.įrom a few tips pulled from the web, I set to create a nice link helper for Ruby / Rails intended to display email links that work indistinguishably from regular mailto: links, and even gracefully downgrade for users without javascript. If you simply have too little to do in the day, this can be a great way to meet new people and start a career in day trading. Once on a spammer’s list, you can expect to get all kinds of interesting stock tips, products to enhance your manhood, and friendly letters from Nigerian diplomats. The web is a generally free and open place for all types of communication, but if you put your email address on 1 website, you can expect an email-harvesting robot spider to find that address and send it to its spammer overlords.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |