Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Anti-Spam Email Function?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Anti-Spam Email Function?

 Post Reply Post Reply
Author
xeerex View Drop Down
Senior Member
Senior Member


Joined: 19 November 2002
Location: United States
Status: Offline
Points: 601
Post Options Post Options   Thanks (0) Thanks(0)   Quote xeerex Quote  Post ReplyReply Direct Link To This Post Topic: Anti-Spam Email Function?
    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.

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
xeerex View Drop Down
Senior Member
Senior Member


Joined: 19 November 2002
Location: United States
Status: Offline
Points: 601
Post Options Post Options   Thanks (0) Thanks(0)   Quote xeerex Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
xeerex View Drop Down
Senior Member
Senior Member


Joined: 19 November 2002
Location: United States
Status: Offline
Points: 601
Post Options Post Options   Thanks (0) Thanks(0)   Quote xeerex Quote  Post ReplyReply Direct Link To This Post Posted: 18 June 2003 at 3:57pm
Thats what I was thinking using ASP but hoped there was a way around it...hmmm.
Back to Top
faubo View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 May 2002
Location: Brazil
Status: Offline
Points: 560
Post Options Post Options   Thanks (0) Thanks(0)   Quote faubo Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Bluefrog View Drop Down
Senior Member
Senior Member


Joined: 23 October 2002
Location: Korea, South
Status: Offline
Points: 1701
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bluefrog Quote  Post ReplyReply Direct Link To This Post 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.

 

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.