Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Showing email address on blog

Showing email address on blog

Scheduled Pinned Locked Moved The Lounge
comquestion
25 Posts 13 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Ashish Derhgawen

    Hey guys, I was wondering..what could be the safest way to let people email me from my blog? I'm really scared of spam mail..any ideas? Ashish :)

    Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

    M Offline
    M Offline
    Mike_V
    wrote on last edited by
    #8

    Hiveware Enkoder[^]? Seems pretty cool. Encodes arbitrary HTML in javascript... pretty cool. Cons: requires javascript to be enabled (duh) Pros: can create a clickable email link that is hidden from all but the most sophisticated spam collectors (ie. none) Mike

    E 1 Reply Last reply
    0
    • M Mike_V

      Hiveware Enkoder[^]? Seems pretty cool. Encodes arbitrary HTML in javascript... pretty cool. Cons: requires javascript to be enabled (duh) Pros: can create a clickable email link that is hidden from all but the most sophisticated spam collectors (ie. none) Mike

      E Offline
      E Offline
      Ed Poore
      wrote on last edited by
      #9

      That looks really cool :beer:. Might use that on one of the websites I manage, was just thinking about how to protect email addresses today.


      I have no idea what I just said. But my intentions were sincere.

      1 Reply Last reply
      0
      • A amclint

        Add an image verification script, that seems to work pretty good against bot spammers.

        if (!interested){return false;} amclint

        A Offline
        A Offline
        Ashish Derhgawen
        wrote on last edited by
        #10

        That's a good idea..

        Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

        1 Reply Last reply
        0
        • A Ashish Derhgawen

          Hey guys, I was wondering..what could be the safest way to let people email me from my blog? I'm really scared of spam mail..any ideas? Ashish :)

          Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

          R Offline
          R Offline
          Rocky Moore
          wrote on last edited by
          #11

          I agree with Jon Sagara on having a contact form where your email address is not expored. Another option is to use an email address that you do not use anywhere else and tell every (where you display the email address) to prefix the subject line with a keyword of your choice (add someting like "Asmish Blog:" to the subject line, just to not include that in a clickable link. After that you just filter (using your email program of choice) all incoming mail with the prefix to a folder and then delete everything else. Focus on detecting good mail instead of worrying about spam.

          Rocky <>< Latest Code Blog Post: SQL Server Express Warnings & Tips Latest Tech Blog Post: Microsoft doing it again!

          1 Reply Last reply
          0
          • J James R Twine

            Todd Smith wrote:

            -Encode the address so a bot will not find it "myemail at somewhere dot com"

            People have been using that kind of thing for so many years now that I would be suprised if bots are not already looking for that kind of format and decoding it.  It is trivial to parse out formats like:

            me-at-someplace-dot-com
            me(@)someplace.com
            me(AT)someplace(DOT)com
            etc.

            Todd Smith wrote:

            -Use a clickable image and compose the email link dynamically

            A better idea - just be sure that the "dynamic" part is followed - the server should accept the input and return the mailto: link, not simply having the image's URL target be the mailto: link - remember that bots generally scan the raw HTML, but do not render it.    [Edit: Then again, a bot will generally follow links so that it can crawl a site, so it could still recognize the retuned link if it was smart enough...  Ah, dammit - there I go again giving the bot-writers good ideas... :doh:   :omg:]    Generally, I have found that if someone wants to email me bad enough, I can simply give them an image with my email address on it and they will type it in by hand.    Peace! -- modified at 14:07 Thursday 11th January, 2007

            -=- James
            Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
            Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
            See DeleteFXPFiles

            A Offline
            A Offline
            Ashish Derhgawen
            wrote on last edited by
            #12

            Yes..I always thought that the spam bots must smart enough to decode things like me-at-someplace.com Good idea..:)

            Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

            1 Reply Last reply
            0
            • A Ashish Derhgawen

              Hey guys, I was wondering..what could be the safest way to let people email me from my blog? I'm really scared of spam mail..any ideas? Ashish :)

              Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

              C Offline
              C Offline
              Chris Losinger
              wrote on last edited by
              #13

              i use this:

              ...some luverly HTMLio...
              
              
              <!-- 
              var name = "my\_name";
              var domain = "my\_domain.com"; 
              var linktext = "email";
              var subject = "email subject";
              document.write('< a href=\\"mailto:' + name + '@' + domain + '?subject=' + subject + '\\">');
              document.write(linktext + '< /a>'); 
              //--> 
              
              ...some more luverly HTMLio...
              

              (remove spaces at the start and close of the HREF tag) -- modified at 13:59 Thursday 11th January, 2007

              image processing toolkits | batch image processing | blogging

              A D R 4 Replies Last reply
              0
              • C Chris Losinger

                i use this:

                ...some luverly HTMLio...
                
                
                <!-- 
                var name = "my\_name";
                var domain = "my\_domain.com"; 
                var linktext = "email";
                var subject = "email subject";
                document.write('< a href=\\"mailto:' + name + '@' + domain + '?subject=' + subject + '\\">');
                document.write(linktext + '< /a>'); 
                //--> 
                
                ...some more luverly HTMLio...
                

                (remove spaces at the start and close of the HREF tag) -- modified at 13:59 Thursday 11th January, 2007

                image processing toolkits | batch image processing | blogging

                A Offline
                A Offline
                Ashish Derhgawen
                wrote on last edited by
                #14

                Sounds like a good idea to me. I don't think the bots will ever be able to guess the actual email address this way. Ashish

                Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

                1 Reply Last reply
                0
                • J James R Twine

                  Todd Smith wrote:

                  -Encode the address so a bot will not find it "myemail at somewhere dot com"

                  People have been using that kind of thing for so many years now that I would be suprised if bots are not already looking for that kind of format and decoding it.  It is trivial to parse out formats like:

                  me-at-someplace-dot-com
                  me(@)someplace.com
                  me(AT)someplace(DOT)com
                  etc.

                  Todd Smith wrote:

                  -Use a clickable image and compose the email link dynamically

                  A better idea - just be sure that the "dynamic" part is followed - the server should accept the input and return the mailto: link, not simply having the image's URL target be the mailto: link - remember that bots generally scan the raw HTML, but do not render it.    [Edit: Then again, a bot will generally follow links so that it can crawl a site, so it could still recognize the retuned link if it was smart enough...  Ah, dammit - there I go again giving the bot-writers good ideas... :doh:   :omg:]    Generally, I have found that if someone wants to email me bad enough, I can simply give them an image with my email address on it and they will type it in by hand.    Peace! -- modified at 14:07 Thursday 11th January, 2007

                  -=- James
                  Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
                  Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
                  See DeleteFXPFiles

                  D Offline
                  D Offline
                  Dan Neely
                  wrote on last edited by
                  #15

                  James R. Twine wrote:

                  Generally, I have found that if someone wants to email me bad enough, I can simply give them an image with my email address on it and they will type it in by hand.

                  The other, and IMO less irritating method to the user is to require the user put SomeWord in the subject header and have the mail servers spam filters reject all emails with out that in the subject. Click the link, copy/paste into the subject.

                  -- Rules of thumb should not be taken for the whole hand.

                  J 1 Reply Last reply
                  0
                  • C Chris Losinger

                    i use this:

                    ...some luverly HTMLio...
                    
                    
                    <!-- 
                    var name = "my\_name";
                    var domain = "my\_domain.com"; 
                    var linktext = "email";
                    var subject = "email subject";
                    document.write('< a href=\\"mailto:' + name + '@' + domain + '?subject=' + subject + '\\">');
                    document.write(linktext + '< /a>'); 
                    //--> 
                    
                    ...some more luverly HTMLio...
                    

                    (remove spaces at the start and close of the HREF tag) -- modified at 13:59 Thursday 11th January, 2007

                    image processing toolkits | batch image processing | blogging

                    A Offline
                    A Offline
                    Ashish Derhgawen
                    wrote on last edited by
                    #16

                    Okay..I'm trying your technique on a test mail address. If the results are good..I'll use my default email address. :D Ashish

                    Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

                    1 Reply Last reply
                    0
                    • C Chris Losinger

                      i use this:

                      ...some luverly HTMLio...
                      
                      
                      <!-- 
                      var name = "my\_name";
                      var domain = "my\_domain.com"; 
                      var linktext = "email";
                      var subject = "email subject";
                      document.write('< a href=\\"mailto:' + name + '@' + domain + '?subject=' + subject + '\\">');
                      document.write(linktext + '< /a>'); 
                      //--> 
                      
                      ...some more luverly HTMLio...
                      

                      (remove spaces at the start and close of the HREF tag) -- modified at 13:59 Thursday 11th January, 2007

                      image processing toolkits | batch image processing | blogging

                      D Offline
                      D Offline
                      David Crow
                      wrote on last edited by
                      #17

                      I've used this approach before. As far as I could tell, it was never exploited.


                      "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

                      "Judge not by the eye but by the heart." - Native American Proverb

                      A 1 Reply Last reply
                      0
                      • D David Crow

                        I've used this approach before. As far as I could tell, it was never exploited.


                        "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

                        "Judge not by the eye but by the heart." - Native American Proverb

                        A Offline
                        A Offline
                        Ashish Derhgawen
                        wrote on last edited by
                        #18

                        I just hope spam bot makers are not watching this conversation :~ Ashish

                        Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

                        C 1 Reply Last reply
                        0
                        • A Ashish Derhgawen

                          I just hope spam bot makers are not watching this conversation :~ Ashish

                          Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

                          C Offline
                          C Offline
                          Chris Losinger
                          wrote on last edited by
                          #19

                          well, i got the JS off the net, somewhere myself. you can certainly do some tweaking to the script itself, to disguise it from any bots looking for that particular script...

                          image processing toolkits | batch image processing | blogging

                          1 Reply Last reply
                          0
                          • C Chris Losinger

                            i use this:

                            ...some luverly HTMLio...
                            
                            
                            <!-- 
                            var name = "my\_name";
                            var domain = "my\_domain.com"; 
                            var linktext = "email";
                            var subject = "email subject";
                            document.write('< a href=\\"mailto:' + name + '@' + domain + '?subject=' + subject + '\\">');
                            document.write(linktext + '< /a>'); 
                            //--> 
                            
                            ...some more luverly HTMLio...
                            

                            (remove spaces at the start and close of the HREF tag) -- modified at 13:59 Thursday 11th January, 2007

                            image processing toolkits | batch image processing | blogging

                            R Offline
                            R Offline
                            Rocky Moore
                            wrote on last edited by
                            #20

                            Wouldn't a bot using a screen scraper (which has the ability to run javascript) still get the same results?

                            Rocky <>< Latest Code Blog Post: SQL Server Express Warnings & Tips Latest Tech Blog Post: Microsoft doing it again!

                            C 1 Reply Last reply
                            0
                            • R Rocky Moore

                              Wouldn't a bot using a screen scraper (which has the ability to run javascript) still get the same results?

                              Rocky <>< Latest Code Blog Post: SQL Server Express Warnings & Tips Latest Tech Blog Post: Microsoft doing it again!

                              C Offline
                              C Offline
                              Chris Losinger
                              wrote on last edited by
                              #21

                              yep.

                              image processing toolkits | batch image processing | blogging

                              1 Reply Last reply
                              0
                              • D Dan Neely

                                James R. Twine wrote:

                                Generally, I have found that if someone wants to email me bad enough, I can simply give them an image with my email address on it and they will type it in by hand.

                                The other, and IMO less irritating method to the user is to require the user put SomeWord in the subject header and have the mail servers spam filters reject all emails with out that in the subject. Click the link, copy/paste into the subject.

                                -- Rules of thumb should not be taken for the whole hand.

                                J Offline
                                J Offline
                                James R Twine
                                wrote on last edited by
                                #22

                                Good idea!  But it is easy only if you operate your own domain names and/or can create multiple email addresses for yourself.    Peace!

                                -=- James
                                Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
                                Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
                                See DeleteFXPFiles

                                1 Reply Last reply
                                0
                                • A Ashish Derhgawen

                                  Hey guys, I was wondering..what could be the safest way to let people email me from my blog? I'm really scared of spam mail..any ideas? Ashish :)

                                  Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

                                  J Offline
                                  J Offline
                                  JimmyRopes
                                  wrote on last edited by
                                  #23

                                  Try this spam me not[^] There are a few of these around but what I like about this one is that it has a random-mixed encoding mode. That is it mixes hex and decimal encoding at random places in the encoding so even the same input string will result in different encodings. I usually add an additional precaution of adding an extra zero or two on the "@", "." and "com" encodings. :wtf: That is I replace x40 ==> x040 or x000040 64 ==> 064 or 00064 x2e ==> x002e or x0002e 46 ==> 046 or 000046 Mix them up so there is no predictable pattern. There is a limit to the number of preceding zeros but I don't remember exactly what it is. :-O You can do some tests to find the limit. If you just stick with up to 4 leading zeros and mix them up it should be OK. :cool: Not entirely necessary but it will usually fool the script kiddies but not necessarily MI6. :doh:

                                  I'm on-line therefore I am. JimmyRopes

                                  A 1 Reply Last reply
                                  0
                                  • J JimmyRopes

                                    Try this spam me not[^] There are a few of these around but what I like about this one is that it has a random-mixed encoding mode. That is it mixes hex and decimal encoding at random places in the encoding so even the same input string will result in different encodings. I usually add an additional precaution of adding an extra zero or two on the "@", "." and "com" encodings. :wtf: That is I replace x40 ==> x040 or x000040 64 ==> 064 or 00064 x2e ==> x002e or x0002e 46 ==> 046 or 000046 Mix them up so there is no predictable pattern. There is a limit to the number of preceding zeros but I don't remember exactly what it is. :-O You can do some tests to find the limit. If you just stick with up to 4 leading zeros and mix them up it should be OK. :cool: Not entirely necessary but it will usually fool the script kiddies but not necessarily MI6. :doh:

                                    I'm on-line therefore I am. JimmyRopes

                                    A Offline
                                    A Offline
                                    Ashish Derhgawen
                                    wrote on last edited by
                                    #24

                                    Awesome!

                                    Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

                                    J 1 Reply Last reply
                                    0
                                    • A Ashish Derhgawen

                                      Awesome!

                                      Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

                                      J Offline
                                      J Offline
                                      JimmyRopes
                                      wrote on last edited by
                                      #25

                                      One caution with using mailto: If the person needing to send email does not have an email client set up on their machine (i.e. outlook express with a mail account set up) they will not be able to use the link because there is no email client to process the email on their machine. An example of this is the person who uses gmail, yahoo, hotmail, etc. I usually offer multiple ways to send email, one of which is that they can type the email address – encoded on the web site of course - into their web mail client. Typically I will set up a form where they select from a predefined drop down list, if there are more than one potential recipients, who to send the email to. customer_support@, technical_support@, sales@, webmaster@, etc. I also provide a drop down selection of predefined subjects. General Inquiry, Billing Question, Comments, etc. I provide a place for the message and send it via a server side script using the servers email service. I provide a place for an email address to be entered and if they do not enter one I inform them that it is required, or, if optional, that they will not receive a reply if there is none supplied. This gives them an option of sending a comment anonymously. In practice I usually require an email address but have been known to solicit anonymous comments for clients who wanted it that way. The one drawback to this approach is that they can enter a false, well formed, email address but in my experience that is not a problem. People who take the time to fill out a form are usually legitimate. I will email you the URLs of some sites I have developed that demonstrate what I am talking about but cannot post the URLs here because these are commercial sites and it would be advertising. If you are interested after you see the examples I can show you the code in the web development forum.

                                      I'm on-line therefore I am. JimmyRopes

                                      1 Reply Last reply
                                      0
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      • Login

                                      • Don't have an account? Register

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • World
                                      • Users
                                      • Groups