AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Encrypt and obfuscate email address links to prevent spam

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Titan



Joined: 11 Aug 2004
Posts: 5026
Location: imaginationland

PostPosted: Thu Jan 04, 2007 2:41 am    Post subject: Encrypt and obfuscate email address links to prevent spam Reply with quote

Encrypts email addresses into a string of hexadecimal and decimal HTML entities.

Instructions
    HTML := cryptEmail(Address [, Text])
    HTML: an anchor with the encrypted email link
    Address: the email address
    Text: display text, if this is not provided the email ciphertext is used


Example:
Code:
cryptEmail("someone@domain.com", "contact me")
; gives: <a href="&#x6d;&#97;&#x69;&#108;&#x74;&#111;&#x3a;&#115;&#x6f;&#109;&#x65;&#111;&#x6e;&#101;&#x40;&#100;&#x6f;&#109;&#x61;&#105;&#x6e;&#46;&#x63;&#111;&#x6d;">contact me</a>


Download
_________________

RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
nitrix
Guest





PostPosted: Tue Aug 14, 2007 12:48 pm    Post subject: Reply with quote

great script, just found it today
made it work with FARR (amazing donationcoder launcher) using regex

i just type an email in FARR then press Enter... Done
so nice

cheers, nitrix
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group