Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!takemy.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <1406343.DcU73NTHyO@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Thu, 26 Dec 2013 07:45:59 +0100 User-Agent: KNode/4.11.3 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. MIME-Version: 1.0 Lines: 47 NNTP-Posting-Date: 26 Dec 2013 07:46:00 CET NNTP-Posting-Host: f208f4b4.newsspool1.arcor-online.net X-Trace: DXC=GVc=`49`?Z0lIh70@4Fo<]lROoR1nkgeX?EC@@0BeLlkVT3cf4DZm8W4\YJN On Wednesday, December 25, 2013 11:34:40 PM UTC-6, Andrew Poulos wrote: >> There's a contact page that I help maintain. Users enter some text (a >> message) into a text field, and then click the submit button. The text >> is processed and sent to a server page which generates an email. >> >> Any message that contains a URL (ie. contains "http://" or "https://") >> is ignored. >> >> I use this to find URLs >> >> var val = >> document.forms['frmEnquiry'].elements['comments'].value.toLowerCase(); >> >> if ((val.indexOf("http://") != -1 ) || >> (val.indexOf("https://") != -1 )) { >> // ignore stuff here >> } It is not a good idea to consider all messages containing URIs to be spam. >> Lately we've been receiving emails that contain URLs. The URLs in the >> email are all of the form >> >> Some text blah... >> (There's a space between the double quotes and the URL) Syntactically wrong, easy to spot. >> Looking at the source for the email does not reveal any encoding of the >> URLs. How could they have managed to get around the search for "http://"? > > Disable JavaScript or post directly without using the form? You can make it harder for spammers by using authentication tokens and *pseudo*-CAPTCHAs – which do *not* do what they claim to – … > You can't avoid using server side validation … but, in general, that is correct. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.