+ Reply to Thread
Results 1 to 8 of 8

Thread: Displaying email addresses

  1. #1
    anthonymcg is offline Coder anthonymcg will become famous soon enough
    Join Date
    Jan 2006
    Location
    Dublin
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Displaying email addresses

    We've got a contact section our site listing out names and phone numbers along with email addresses. I'm wondering what's the best way to combat spam bots from copying these addresses down? Should I use something like:

    firstname.lastname [at] whatever.com

    ??

    Appreciate some feedback.
    Anthony

    [ Personal Blog ][ Work: Dublin.ie ]

  2. #2
    Gavin is offline Hardcore Geek Gavin has a spectacular aura about
    Join Date
    Aug 2006
    Location
    Dublin
    Posts
    1,074
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You could place the email address inside a script but if you are like me (lazy) just add an image that states the email address.

    How about a contact form?

  3. #3
    blacknight's Avatar
    blacknight is offline Web Slave blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    7,908
    Thanks
    9
    Thanked 8 Times in 7 Posts

    Default

    I used to use a simple php script to handle it ie. on the page you had user => script which converts to user@domain

    It stopped a lot of the junk

  4. #4
    anthonymcg is offline Coder anthonymcg will become famous soon enough
    Join Date
    Jan 2006
    Location
    Dublin
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Cormac View Post
    You could place the email address inside a script but if you are like me (lazy) just add an image that states the email address.

    How about a contact form?
    Images aren't really an option because of usability.

    On the contact form, not too sure how I'd make that work inside our existing CMS. Will look into it.

    Quote Originally Posted by blacknight View Post
    I used to use a simple php script to handle it ie. on the page you had user => script which converts to user@domain

    It stopped a lot of the junk
    How does that work? The script is parsed and the email is shown normally anyway?
    Anthony

    [ Personal Blog ][ Work: Dublin.ie ]

  5. #5
    blacknight's Avatar
    blacknight is offline Web Slave blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    7,908
    Thanks
    9
    Thanked 8 Times in 7 Posts

    Default

    Instead of a mailto link you use a href one... The script does the conversion for you

  6. #6
    anthonymcg is offline Coder anthonymcg will become famous soon enough
    Join Date
    Jan 2006
    Location
    Dublin
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh right, I see what ya mean.
    Anthony

    [ Personal Blog ][ Work: Dublin.ie ]

  7. #7
    louie's Avatar
    louie is offline Senior Member louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough
    Join Date
    Jan 2006
    Location
    Dublin, Ireland
    Posts
    2,328
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Something like this should do it:

    PHP Code:
    email: <a title="info" rel="domain.ie" href="mailto:info[at symbol]domain.ie" onclick="this.href='mailto:'+this.getAttribute('title')+'@'+this.getAttribute('rel')"><span>Send Us an Email</span></a
    Last edited by louie; 02-12-2006 at 04:23 PM.
    :. Web Design & Development Web Design Ireland
    :. Search Engines Optimization Search Engines Optimization
    :. Car Parts & Accessories Car Parts
    :. Cars Ireland Cars Ireland
    :. I Have 2 Find It Directory SEF Directory

  8. #8
    ButtermilkJack's Avatar
    ButtermilkJack is offline Wannabe Geek ButtermilkJack will become famous soon enough
    Join Date
    Feb 2006
    Location
    Dublin, Ireland
    Posts
    269
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Cormac View Post
    You could place the email address inside a script...
    here's one I found a few years back and have been using it eversince. Can't remember where I got it but no doubt on some helpful tutorial site

    <script type="text/javascript">

    <!--
    var username = "name";
    var hostname = "domain.xx";
    var linktext = username + "@" + hostname;
    document.write("<a href=" + "mail" + "to:" + username +
    "@" + hostname + ">" + linktext + "</a>")
    //-->
    </script>


    Probably similar to ideas already mentioned above but it's a nice little script I think.

+ Reply to Thread

Similar Threads

  1. Email Marketing Software / Services
    By blacknight in forum Email Marketing
    Replies: 11
    Last Post: 12-12-2009, 11:39 PM
  2. Email marketing compared to direct marketing.
    By JCB in forum Email Marketing
    Replies: 30
    Last Post: 15-01-2009, 04:43 PM
  3. Newbie to Email Marketing
    By Fintan in forum Email Marketing
    Replies: 5
    Last Post: 20-01-2008, 02:26 PM
  4. Website not sending email to own domain
    By cmccar in forum Server / Technical Administration Tips and Queries
    Replies: 5
    Last Post: 05-10-2006, 06:58 PM
  5. prevent mass email
    By louie in forum Coding Help
    Replies: 2
    Last Post: 08-07-2006, 09:34 AM

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!
SEO Blog

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Optimization by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64