Results 1 to 9 of 9

Thread: Contact form - possible solutions for email parsing

  1. #1
    Join Date
    Oct 2004
    Posts
    385

    Lightbulb Contact form - possible solutions for email parsing

    Hi there,
    I've been thinking about the contact form for a long time (even dreamt while sleeping) and I was wondering if it was possible to customize it to apply my special needs (more fields, calendar...).

    Yes, sure, it's possible.

    I just add a cgi form within the detailed listing and I can do what I want as the agent email is also parsed...

    The question is all about spam.
    I don't want my listing detailed pages to be visited by spammers spiders and collect clients addresses...

    How can I parse the email into the form without being catched by spammers?

    The solution (not yet tried) could be to enter an obfuscated email address.

    This address could be obfuscated right away or adding it in the agent's fields.

    Then when we load the detailed listing, the contact form loads with the formmail in it, with this line

    INSTEAD OF
    <input type="hidden" name="recipient" value="info@customer.com">

    WE HAVE
    <input type="hidden" name="recipient" value="&#105;&#110;&#102;&#111#111;&#109;"> code wich should still return info@customer.com (in MSFrontpage does and also when parsing the real code in this post I got again the value info@customer.com ...)

    I didn't try if it works but if it works this could be a solution.

    Not to mention the dream of parsing the account in a php form script but I guess this requires more skills...


    Do you guys know some similar products to do this trick?

    Hope to have some food for thoughts...

    Thanks and regards

  2. #2
    Join Date
    Sep 2003
    Location
    London UK
    Posts
    1,654

    Default Re: Contact form - possible solutions for email parsing

    Hi Andrea

    I am sure i did a code for this for Open Realty 1.1.4 to 1.1.5b

    I will have to take a look today for you and see. I do understand about this,
    that spam has increased from nov 2006 x10 and it seems not to have slowed
    down in any way.


    Main Areas:
    contact us page only . where admin has his address

    All other pages you will need to click a link for the form.
    you also have Vcard which can be turned on in admin. clikc on that
    and the address will be downloaded to your email client.


    will update you on the code later today

    Albert

  3. #3
    Join Date
    Oct 2004
    Posts
    385

    Default Re: Contact form - possible solutions for email parsing

    Hi Albert I updated my post above to show the code I was thinking about to include in a formail...

    Regards

    Andrea

  4. #4
    Join Date
    Dec 2006
    Posts
    36

    Default Re: Contact form - possible solutions for email parsing

    Hi Andrea,
    I was wondering if your code had nipped the spam/spiders in the bud?
    I too am concerned about clients getting spammed. I just dont know how to fix it. My husband is a software engineer and I am going to have him take a look at the code this weekend and see if he can tweek it and add a captcha and/or anti-spam code. Let me what you come up with and if Hubby codes a fix, will be happy to give it to you and everyone else.
    Cheers,
    K

  5. #5
    Join Date
    May 2004
    Location
    Long Island, NY
    Age
    49
    Posts
    9,796

    Default Re: Contact form - possible solutions for email parsing

    OR 2.4 will have captcha on the contact forms. It is already added in SVN.

    For what Andrea wants, an addon should really be written that will pass the listing id to the mail process script. Then have the mail process script get the email address from the DB and send the email. Passing the email address through the form is never a good idea.

    Spiders are getting smarter and I'm sure they could easily read obfuscated email addresses. There's already a script that can break a captcha code over 70% of the time. The script was not created to be used for spam but to prove that it could be done. I'm sure the spam spiders will have the ability soon enough though.

  6. #6
    Join Date
    Oct 2004
    Posts
    385

    Default Re: Contact form - possible solutions for email parsing

    Paul,
    correct me if I'm wrong.

    I feel that the new captcha in the next release's contact form is has no sense if meant for spiders.

    Being displayed in a javascript popup there should not be any problems to keep spammers outside.

    It can be useful for automatic submissions (maybe not) but not for spammers.

    What I'm looking for is a new way to have a full contact form within my listing detailed page; I've already included with iframe the original contact form but then I'm not able to modify it the way I want.

    I just hoped to find some kind of script on hotscripts . com to adapt my idea but had no luck.

    Writing an addon could be the best solution but unfortunately I've not yet the skills to pass the listing id to the mail process script and then have the mail process script get the email address from the DB and send the email.

    I'll keep on searching...

    Andrea

  7. #7
    Join Date
    Sep 2003
    Location
    London UK
    Posts
    1,654

    Default Re: Contact form - possible solutions for email parsing

    Hi Andrea

    So you would like to show an email address on the page.

    bill.gates@msn.com

    here is a code I did you can play with, not sure if it will work for you.


    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
    <head>
    <!-- Meta Data -->
    <title>360 Web Design.co.uk | Hide email address with css</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta http-equiv="content-language" content="en" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta http-equiv="Content-Language" content="English" />
    <meta name="generator" content="cms 1.0" />
    <!-- Robots -->
    <meta name="robots" content="ALL,INDEX,FOLLOW,ARCHIVE" />
    <meta name="revisit-after" content="7 days" />
    <!-- Meta Data -->
    <meta name="Description" content="CSS and XHTML valid CMS, 360 Web Design.co.uk" />
    <meta name="Keywords" content="360 Web Design.co.uk, css " />
    <!-- Stylesheet -->
    <link rel="stylesheet" type="text/css" href="style.css" media="screen" />
    <!-- javascript -->
    <script type="text/javascript" src="script.js"></script>
    <script type="text/javaScript">
    //<![CDATA[
    <!-- Begin
    
    
    // End -->
    //]]>
    </script>
    <!-- Stylesheet -->
    <style type="text/css">
    		#container {
    			width: 770px;
    			\width: 790px;
    			w\idth: 770px;
    			border: 1px solid gray;
    			margin: 10px;
    			margin-left: auto;
    			margin-right: auto;
    			padding: 10px;
    		}
    
    		#banner {
    			padding: 0;
    			margin-bottom: 0;
    			background-color: rgb(213, 219, 225);
    		}
    
    		#content {
    			padding: 0;
    			margin-left: 200px;
    			background-color: #FFFFFF;
    		}
    
    		#sidebar-a {
    			float: left;
    			width: 200px;
    			\width: 200px;
    			w\idth: 200px;
    			margin: 0;
    			margin-right: 0;
    			padding: 0;
    			background-color: rgb(235, 235, 235);
    		}
    
    		#footer {
    			clear: both;
    			padding: 0;
    			margin-top: 0;
    			
    			background-color: rgb(213, 219, 225);
    		}
    
    a:link    {color: #666666; }    /* unvisited links */
    a:visited {color: #666666; }   /* visited links   */
    a:hover   {color: #666666;  text-decoration: none;} /* user hovers     */
    a:active  {color: #666666; }   /* active links    */
    	</style>
    
    <style type="text/css" media="screen">
    /* <![CDATA[ */
      
    /* ]]> */
    </style>
    
    <style type="text/css">
    /*<![CDATA[*/
    
    .backwards {unicode-bidi:bidi-override; direction: rtl; color:#c00;}
    h2.email {color:#000; text-decoration:none; border:0; font-size:2em; font-weight:bold;}
    
    
    /*]]>*/
    </style>
    
    </head>
    <body>
    
    	<div id="container">
    		<div id="banner">&nbsp;</div>
    
    		<div id="sidebar-a">&nbsp;</div>
    
    <div id="content">&nbsp;
    
    <p>
    bill.gates@msn.com 
    </p>
    
    <h2 class="email">Why not email me at <br />
    
    <span class="backwards">bill.gates@msn.com</span></h2>
    
    
    <p>
    The address bellow is the email address shown on your web site to beat the spam bots,<br />
    the address is now reversed back by the CSS.  View source code to see.
    </p>
    
    <h2 class="email">2 Why not email me at 
    <span class="backwards">moc.nsm@setag.llib</span></h2>
    
    
    </div>
    
    		<div id="footer">&nbsp;</div>
    	</div>
    </body>
    </html>
    2. Anohter way was to use sesions and .htaccess I am yet to find this code
    for you.

    But like pauls said, these spam people will find a way...

    Albert

  8. #8
    Join Date
    Oct 2004
    Posts
    385

    Default Re: Contact form - possible solutions for email parsing

    Hi Al,
    just saw your message today.

    It could be what I need but I've to see if I can integrate into a cgi form to create my custom form and add it already within my listing page.

    I'll check and will let you know what I will sort...

    Regards to the community

    Andrea

  9. #9
    Join Date
    Nov 2004
    Location
    Sanlucar de Barrameda, Spain.
    Age
    50
    Posts
    484

    Default Re: Contact form - possible solutions for email parsing

    I'm not a great fan of using java, just in case they have is disabled and bang goes your vistors...!

    As I don't use V2.x I'm may be well off the mark, but what I do is test every field to see if it contains any text such as (http / www / url) etc and to die if it does, i also take the IP address and check where that is from as an extra measure.

    PHP Code:
    function validate_bot($b) {
      
    $forbidden = array('http''href''url''HTTP''URL');
      foreach (
    $forbidden as $a)
        if (
    strpos($b$a) !== false) return false;
      return 
    true;

    You can also add other terms such as @website.com as many bots add this and why would a customer be using your email address domain to send to you...!!

    Hope it helps Ian

Bookmarks

Posting Permissions

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