Re: [WSG] More on spam traps
Client side validation fails when scammers screen scrape your site and then directly send to your receiving script. You really need to consider using a server side validation. Ken Sent from my Verizon Wireless BlackBerry -Original Message- From: coder co...@gwelanmor-internet.co.uk Sender: li...@webstandardsgroup.org Date: Wed, 22 Aug 2012 12:37:51 To: wsg@webstandardsgroup.org Reply-to: wsg@webstandardsgroup.org Subject: [WSG] More on spam traps Hi All, I have recently attempted to 'trap' spammers who use autofilling tactics on the site at www.gwelanmor-internet.co.uk. This is written in html5 and uses a mixture of simple tests to validate the form. However, yesterday I recvd a mail thus: a.. name a.. igmgrtasel a.. email a.. a.. hidden a.. -9 a.. comments a.. CaWePF a href=http://ipdszgwutyvp.com/;ipdszgwutyvp/a, [url=http://fkpbtvpaxitv.com/]fkpbtvpaxitv[/url], [link=http://rtcdalwdjrkb.com/]rtcdalwdjrkb[/link], http://xsejahukjzdr.com/ a.. send a.. send message . The script I used to validate the form is this: script type=text/javascript function validateForm() { var x=document.forms[contact][email].value; var atpos=x.indexOf(@); var dotpos=x.lastIndexOf(.); if (atpos1 || dotposatpos+2 || dotpos+2=x.length) { alert(This is Not a valid e-mail address); return false; } // var y=document.forms[contact][hidden].value; if (y==null || y==) { return true;} else { alert(I think you are a machine) return false; } } !--// -- function check(node) { var re = new RegExp('[\[\\]]', 'g'); document.getElementById('send').disabled = re.test(node.value); } /script and it works locally and online. However the mail I quote from above is completely unaffected. Does this mean I give up trying, or what? Any thing? Thanks, Bob *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] Firefox 3 candidate
Quoting Jason Grant [EMAIL PROTECTED]: It will replace it even if you install into different directory. :-( Then it means you are not going to have your FireBug available to work with. FF3 is very nice and I am excited. Just can't wait for FireBug to become compatible with it as it is so crucial for us of course. Firebug is available for FF3 at the normal FF addons area. https://addons.mozilla.org/en-US/firefox/addon/1843 Ken *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] PHP includes
Quoting Michael Horowitz [EMAIL PROTECTED]: If I am including a menu using the PHP include command but the actuual menu is an html list does the included file need to have its code including the css style sheet or will it use the style sheet of the page it is included to. Any text that's in the PHP include file that is not PHP code is passed directly to the browser as part of the HTML code. Therefore it does not need it's own CSS style sheet. Ken *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] W3C validator bug?
Quoting Nick Fitzsimons [EMAIL PROTECTED]: Hi, Since I made a post whose title included double-quotes on my WordPress-powered site, the W3C's validator has been whining at me: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.nickfitz.co.uk%2F because the page now contains double-quote-delimited title attributes whose value, from the validator's point of view, includes double-quotes. However, the actual source contains the relevant numeric character references (#8220; and #8221;), not the quote characters themselves. You're getting the errors report because the validator is using the rendered page source not the original source code. To validate the original source code either upload it or paste the source on the main page. Ken *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***