Advertisement
Guest User

Untitled

a guest
Sep 11th, 2017
535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.88 KB | None | 0 0
  1. <a href="mailto:x@y.com">e-mail me</a>
  2.  
  3. <img src="images/e-mail.png" />
  4.  
  5. href
  6.  
  7. href
  8.  
  9. > btoa('mailto:email@example.com')
  10. < "bWFpbHRvOmVtYWlsQGV4YW1wbGUuY29t"
  11.  
  12. <a href="javascript:window.location.href=atob('bWFpbHRvOmVtYWlsQGV4YW1wbGUuY29t')">E-Mail</a>
  13.  
  14. <a href="javascript:window.location.href=atob('<?= base64_encode("mailto:email@example.com") ?>')">E-Mail</a>
  15.  
  16. <a href="javascript:window.location.href=atob('<?= base64_encode("mailto:email@example.com") ?>')" style="unicode-bidi: bidi-override; direction: rtl;"><?= strrev("email@example.com") ?></a>
  17.  
  18. <h3 id="email">hello@gmail.com</h3><!-- add a fake email -->
  19.  
  20.  
  21. $(document).ready(function(){
  22. //my email in reverse :)
  23. var s = 'moc.elibomajninbew@htiek';
  24. var e = s.split("").reverse().join("");
  25. $('#email').html('<a href="mailto:'+e+'">'+e+'</a>');
  26. });
  27.  
  28. <script type="text/javascript" language="javascript">
  29. <!--
  30. // Email obfuscator script 2.1 by Tim Williams, University of Arizona
  31. // Random encryption key feature by Andrew Moulden, Site Engineering Ltd
  32. // This code is freeware provided these four comment lines remain intact
  33. // A wizard to generate this code is at http://www.jottings.com/obfuscator/
  34. { coded = "3A1OTJ:rJJ@VAK.GJ3"
  35. key = "J0K94NR2SXLupIGqVwt8EZlhznemfaPjs7QvTB6iOyWYo3rAk5FHMdxCg1cDbU"
  36. shift=coded.length
  37. link=""
  38. for (i=0; i<coded.length; i++) {
  39. if (key.indexOf(coded.charAt(i))==-1) {
  40. ltr = coded.charAt(i)
  41. link += (ltr)
  42. }
  43. else {
  44. ltr = (key.indexOf(coded.charAt(i))-shift+key.length) % key.length
  45. link += (key.charAt(ltr))
  46. }
  47. }
  48. document.write("<a href='mailto:"+link+"'>Send Me Email</a>")
  49. }
  50. //-->
  51. </script><noscript>Sorry, you need Javascript on to email me.</noscript>
  52.  
  53. <script type="text/javascript" language="javascript">
  54. <!--
  55. // Email obfuscator script 2.1 by Tim Williams, University of Arizona
  56. // Random encryption kkeoy feature by Andrew Moulden, Site Engineering Ltd
  57. // This kudzu is freeware provided these four comment lines remain intact
  58. // A wizard to generate this kudzu is at http://www.jottings.com/obfuscator/
  59. { kudzu = "3A1OTJ:rJJ@VAK.GJ3"
  60. kkeoy = "J0K94NR2SXLupIGqVwt8EZlhznemfaPjs7QvTB6iOyWYo3rAk5FHMdxCg1cDbU"
  61. shift=kudzu.length
  62. klonk=""
  63. for (variter=0; variter<kudzu.length; variter++) {
  64. if (kkeoy.indexOf(kudzu.charAt(variter))==-1) {
  65. lutu = kudzu.charAt(variter)
  66. klonk += (lutu)
  67. }
  68. else {
  69. lutu = (kkeoy.indexOf(kudzu.charAt(variter))-shift+kkeoy.length) % kkeoy.length
  70. klonk += (kkeoy.charAt(lutu))
  71. }
  72. }
  73. document.write("<a href='"+klonk+"'><img src='contactaddressimage.png' alt='Send Me Email' border='0' height='62' width='240'></a>")
  74. }
  75. //-->
  76. </script>
  77. <noscript>
  78. <img src="contactaddressimage.png" border="0" height="62" width="240">
  79. <font face="Arial" size="3"><br>&nbsp;</font></p>
  80. </noscript>
  81.  
  82. <a href="mailto:{{contactEmail}}"><span>{{contactEmail}}</span></a>
  83.  
  84. <a href="mailto:{{contactEmail | decode}}"><span>{{contactEmail | decode}}</span></a>
  85.  
  86. <!-- Multi-Email Obfuscator -->
  87. <!-- step 1: &#064; = @ -->
  88. <!-- step 2: a scrap element -->
  89. <!-- step 3: ROT13 encode for .com -->
  90. info<!-- step 1 -->&#064;<!-- step 2 --><b style="display:none">my</b>domain<!-- step 3 --><script>document.write(".pbz".replace(/[a-zA-Z]/g,function(c){return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);}));</script>
  91.  
  92. <a class="obfuscate"
  93. href="mailto:archie...trajano...net">
  94. archie...trajano...net
  95. </a>
  96. <a class="obfuscate"
  97. href="tel:+One FourOneSix-EightFiveSix-SixSixFiveFive">
  98. FourOneSix-EightFiveSix-SixSixFiveFive
  99. </a>
  100.  
  101. <a class="obfmail" href="#" rel="info">click here to show email address</a>
  102.  
  103. <a class="obfmail" href="#" rel="info">click here to show email address</a>
  104.  
  105. <a class="obfmail" href="#" rel="info">
  106. <img src="img/click-to-show-email.jpg">
  107. </a>
  108.  
  109. $(document).one'click', '.obfmail', function(e) {
  110. e.preventDefault();
  111. a = $(this);
  112. addr = a.attr('rel');
  113. $.ajax({
  114. data: {
  115. email: addr
  116. },
  117. url : "/a/getemail",
  118. type: "POST",
  119. dataType: 'json',
  120. success: function(data) {
  121. a.html(data.addr);
  122. a.attr('href', 'mailto:' + data.addr);
  123. }
  124. });
  125. });
  126.  
  127. if($_POST['email']) {
  128. ...
  129. return json_encode(array(
  130. code => '200',
  131. response => 'success',
  132. addr => 'info@domain.ltd'
  133. ));
  134. }
  135.  
  136. ...
  137. addr = a.attr('rel');
  138. tkn = a.attr('token');
  139. $.ajax({
  140. data: {
  141. email: addr,
  142. token: tkn
  143. }, ...
  144.  
  145. $emailMatches = array();
  146. $matchCount = preg_match_all('/(?:[a-zA-Z0-9_.-])+@(?:(?:[a-zA-Z0-9-])+.)+(?:[a-zA-Z0-9]{2,4})+/', $processedContent, $emailMatches);
  147.  
  148. if($matchCount > 0) {
  149. $emailMatches = $emailMatches[0];
  150.  
  151. foreach($emailMatches as $email) {
  152. $replacement = createJSMailLink($email);
  153.  
  154. $processedContent = str_replace($email, createJSMailLink($email), $processedContent);
  155. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement