Free Domain Names






Post new topic Reply to topic  [ 10 posts ] 
post you full emailaddress without spam 
Author Message
Jr. Member

Joined: Wed May 06, 2009 7:20 pm
Posts: 251
Post post you full emailaddress without spam
in order to be able to show your full email on your site, without ugly 'at', $ or other substitutions for @ to stay spam free you can use a simple javascript that writes the charcodes instead..
example:
to create a valid working mailto link for the address example@mail.com you can use this.
Code:
<script type="text/javascript"> <!--
document.write('<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#64;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;">&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#64;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;</a>');
// -->
</script>


this won't make sense to a spam-webcrawling-robot that only looks at the source code, but a normal visitor will see the address normally.
If you are lazy and don't want to look up the charcodes for your particular address you can use this: http://polsson.co.cc/hiddenmail.php
as usual my site is is swedish, but simply enter your emailadress in the first box, hit 'konvertera' and you'll get your code in the bottom box.
Below the bottom box there is also an example with the address example@mail.com so you can see that it's working :D

_________________
//Paka
>>Forum Moderator<<
polsson.co.cc


Thu Jun 11, 2009 8:21 pm
Profile
Jr. Member

Joined: Wed May 06, 2009 7:20 pm
Posts: 251
Post Re: post you full emailaddress without spam
maybe this should be in tutorials...
if so, maybe emanace can move it for me

EDIT:: Moved to Website Design

_________________
//Paka
>>Forum Moderator<<
polsson.co.cc


Fri Jun 12, 2009 2:42 am
Profile
Newbie

Joined: Tue Jul 07, 2009 8:46 pm
Posts: 42
Post Re: post you full emailaddress without spam
Wow nice way to solve it!
But u could also do it with out JS.
Code:
<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#64;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;">&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#64;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;</a>


Last edited by prototype on Tue Jul 07, 2009 10:04 pm, edited 1 time in total.



Tue Jul 07, 2009 9:50 pm
Profile
Jr. Member

Joined: Wed May 06, 2009 7:20 pm
Posts: 251
Post Re: post you full emailaddress without spam
hehe sure, just wanted to show of my js skills :lol:
no really, true you don't need js for this, I just got the feeling that javascript would make it even more "secure", don't have any facts to back me up on this, just a feeling I have.

_________________
//Paka
>>Forum Moderator<<
polsson.co.cc


Tue Jul 07, 2009 9:56 pm
Profile
Newbie

Joined: Tue Jul 07, 2009 8:46 pm
Posts: 42
Post Re: post you full emailaddress without spam
nah nah xD u were right... xD

I didn't realize that doing it like I said would end up like writing the same as the email, with out the ¿ANSI? code xD
Like u did it never gets converted to the email, it keeps saying the asni code

Well, it mostly depends on the server I think, but ur script has less changes to get converted... xD


Tue Jul 07, 2009 9:59 pm
Profile
Jr. Member

Joined: Wed May 06, 2009 7:20 pm
Posts: 251
Post Re: post you full emailaddress without spam
aaah
always makes me glad when I'm right :lol:
honestly I never even tried it without javascript, weird.. I mean... who uses javascript BEFORE even trying it in html :)
lucky for me it turned out to be better with js :D

_________________
//Paka
>>Forum Moderator<<
polsson.co.cc


Tue Jul 07, 2009 10:05 pm
Profile
Newbie

Joined: Tue Jul 07, 2009 8:46 pm
Posts: 42
Post Re: post you full emailaddress without spam
jajaaj, or at least I think so xD I've done a quick test, and on my localhost server (running on Apache) none get converted to the email, but running them on an other server only mine got converted T_T jajajaja


Tue Jul 07, 2009 10:07 pm
Profile
Newbie

Joined: Wed Sep 23, 2009 12:50 am
Posts: 16
Post Re: post you full emailaddress without spam
the easiest way:
turn on your anti spam on ur mailbox.......
:lol:


Thu Sep 24, 2009 11:30 pm
Profile
Jr. Member

Joined: Wed May 06, 2009 7:20 pm
Posts: 251
Post Re: post you full emailaddress without spam
darkduo wrote:
the easiest way:
turn on your anti spam on ur mailbox.......
:lol:


indeed :)
but those arent allways effective enough so why just serve the spambots with the email adress on a plate

_________________
//Paka
>>Forum Moderator<<
polsson.co.cc


Fri Sep 25, 2009 5:51 am
Profile
Newbie
User avatar

Joined: Tue Oct 27, 2009 7:47 am
Posts: 20
Location: Phoenix, AZ
Post Re: post you full emailaddress without spam
Very nice bit of code there.
I would use it myself, but most of my emails are stuck inside of mediawiki pages that I don't think would respond well to adding in javascripting.
=)

Will have to see if it will work on my Dragonfly CPG site.

_________________
ftalarp.com and righthandofinnoruuk.com - Both on emenace.com hosting =)


Fri Nov 13, 2009 10:13 am
Profile ICQ YIM WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Free Web Hosting | Free Web Hosting Forum | Emenace | Free Web Host

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Forum style by Vjacheslav Trushkin