11/2/2022 0 Comments Online email obfuscator rot13![]() ![]() Step 2 - The HTML: This is the HTML the spambot will see. However, I'd be pretty impressed if a spambot could figure out this display none obfuscated address. If you use an "Email Me" phrase in the anchor text instead then there is no evidence of a email at all. #ONLINE EMAIL OBFUSCATOR ROT13 CODE#Because PHP is server side, there is no obfuscated mailto: email address in your source code on your base page or email.php page. This hides the email address from spambots with CSS and PHP. ![]() ![]() The original less graceful degradation tut can be found here. Var s="=b!isfg>#nbjmup nfAepnbjo/dpn#?nfAepnbjo/dpn=0b?" m="" for(i=0 is what the user will see with JS ON or OFF. Place this where you want your email to 4 - The JS: Notice it's only one line - bo-yeah baby! Place YOUR generated js encoded code at the bottom of your webpage just above the body tag. Step 3 - The HTML: This is the HTML the spambot will see. #ONLINE EMAIL OBFUSCATOR ROT13 GENERATOR#Step 1: Use this Email Obfuscator Generator » enter your full mailto email address, anchor, and text (eg » select obfuscating method Javascript » grab the generated code » remove the noscript tags » and replace document.write with document.getElementById('method1').innerHTML=(m). Alternatively, if you'd like to use your more standard ROT13 code then you can use this one instead, following roughly the same steps as the ones provide below. I chose to use this one here and in my own personal project because it looks completely un-crackable and because it has the least amount of code than any other method I tested. Just look at, it's even more completely unrecognizable than any other ones you'll likely find. It has many code similarities as other ROT13 examples I've seen. I'm fairly certain this is ROT13 Encryption - or some form of it. If you going to use JS to hide an email then apparently ROT13 Encryption is the best it gets. This hides the email address from spambots with CSS and JS. In my opinion, it's the cleanest and easiest. All three methods below are completely full proof as tested here. Neither are ok with me, so display none it is. Using the content property you can't copy the text in a few browsers, and using the reverse text method the text gets pasted (presumably in the users email program) backwards. (1) address:after (2) (3) display:none as we are doing below. There are 3 ways to hide the plain text with CSS. Therefore I needed to hide it in the href="mailto:" and also the anchor text. I ALSO wanted to use a recognizable email (eg in the anchor text and not just some generic "Email Me" words. I ALSO needed to be able to correctly copy and paste the email address with js on or off. I also did NOT want it to fail with JS Off. I also did not want the user to have to lift a finger (other than the one click) deciphering my email or having to mess with stupid captchas. I went to find the best ways to hide (AKA obfuscate) a mailto: email address. With JS OFF the link is no longer clickable BUT the text is still there and able to be copied by ALL browsers. I killed it again! When I say graceful degradation, I mean with JS ON, when the user clicks the link it opens in their default email program. View Demo of 40 Methods I tested/played with View Demo of the 3 Methods featured below Home » code » javascript » graceful degradation mailto email address obfuscation tutorial Graceful Degradation Mailto Email Address Obfuscation - Hide Your Email From Spambots Tutorial ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |