Print Page | Close Window

Anti-Spam Email Function?

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=3641
Printed Date: 29 March 2026 at 11:56pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Anti-Spam Email Function?
Posted By: xeerex
Subject: Anti-Spam Email Function?
Date Posted: 18 June 2003 at 12:20pm

Hello all,

I'm still a newbie to ASP except hacking away at Bruce's forum. Anyway, heres the question:

Is there an ASP script or function that will generate (or write) an email link in a browser without revealing the email in the source code?

I understand that response.write is processed at the server and displayed to the browser in the HTML, but I am wondering if there is something similar to this javascript implementation:

<script type="text/javascript">
user ="rex"
domain ="rexpage.com"
subCon ="Javascript Email"
document.write('<a href="mailto:' + user + '@' + domain +'?subject=' +subCon+' " ' +' >Contact Us</a>');
</script>

Obviously this is to try and slow down the tide of spam. I have placed the javascript in its own asp page and just use includes; however, if a user has scripting turned off in the browser this presents a problem. I thought of using ASP variables or a function but can't figure out how to display the email reference without using a response.write which will display in the html.

Any advice or feedback is apprectiated.



-------------
http://webspacegeeks.com - Need Hosting, Domains, Dedicated Servers?
http://www.smartergeek.com - web design | pc support | training | podcasts | video production



Replies:
Posted By: michael
Date Posted: 18 June 2003 at 2:28pm
You still see the email in the source or even easier in your outbox/sent itmes. the best way is to use an email component.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: xeerex
Date Posted: 18 June 2003 at 2:36pm

The bots don't pickup the javascript email addy through the source code since the bots read the javascript function and not the results.

I'm just wondering if there is a pure ASP way to do it without the email displaying in the source.

Quote even easier in your outbox/sent itmes

Huh? I know the email addy will be in the users outbox/sent if they are using a POP3 client (and I suppose a http client) but hopefully the bots aren't THAT smart yet.



-------------
http://webspacegeeks.com - Need Hosting, Domains, Dedicated Servers?
http://www.smartergeek.com - web design | pc support | training | podcasts | video production


Posted By: michael
Date Posted: 18 June 2003 at 3:47pm
Bots ok but there are people having site-scanners searching for email addresses in the source code. So if a bot requests a page where the email is stored in an asp variable it would still display as html.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: xeerex
Date Posted: 18 June 2003 at 3:57pm
Thats what I was thinking using ASP but hoped there was a way around it...hmmm.

-------------
http://webspacegeeks.com - Need Hosting, Domains, Dedicated Servers?
http://www.smartergeek.com - web design | pc support | training | podcasts | video production


Posted By: faubo
Date Posted: 18 June 2003 at 4:31pm

Cant you use a form to e-mail?

I think that's the only way around getting your e-mails in a bot or other kind of automatic stuff... many people are using some kind of this... so... I think it's a matter of time to some clever guy make a better bot.

I use javascript too but I'm moving to a form very soon, just need some time.



-------------
http://www.conhecerparaconservar.org - I don't know how to make you click here


Posted By: Bluefrog
Date Posted: 20 June 2003 at 10:45am

Spam bots pick up everything. To avoid that, use a form or use a graphic. You can find components that will create graphics of text, but then the user needs to type it because you can't link it due to spam-bots picking it up.

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net