POSTED: Tuesday, December 15, 2009

Stop Comment Spam

On Wednesday, December 9, 2009 at 06:20 (GMT) Project Honey Pot received its billionth email spam message. The message was a United States Internal Revenue Service (IRS) phishing scam.As moderator of several technology blogs we have seen an increase this year of comment spam. You've probably seen it too...advertisements pretending to be helpful advice posted on a blog with numerous links back to the retailer.We fight these forms of spam with a few simple techniques. Once the blog post page or...

Read More "Stop Comment Spam"

POSTED: Wednesday, May 20, 2009

Shorten URL's with TinyURL or IsGd

Taking a long URL that has been stuffed with keywords for the search engines and making it shorter for use on Twitter or on your Website, Blog or FaceBook page is quite simple. There are many free services available butlast week we were asked to create a simple ASP URL shortener. We chose TinyUrl for the service because (1) they require no API or registration (2) the default length of the shortened URLwas 25 characters or less (3)the short URL's NEVER expire (4) they feature Direct Redirect and...

Read More "Shorten URL's with TinyURL or IsGd"

POSTED: Friday, January 30, 2009

CDONTS email form - download working example

Folks who still use Microsoft FrontPage to build their web sites are finding that more and more hosting companies are not supporting FrontPage extensions.  As a result, forms, database connections, and forms-to-email that relied on the little "webbots" no longer work. As a moderator on several development forums I see the same questions weekly, "How can I send my form information to an email."

Since we are ASP and .NET developers and stay (mostly) within the code confines of those languages (and the related Microsoft Servers) I can say that creating a form, validating it, parsing the form fields to create an email object, sending the email and, finally, thanking the user for their contact  -  all while wrapping the UI in a tableless (CSS) form that is compatible for the sight-impaired and cross-browser friendly is no easy task for the beginning coder.  Taken in baby steps it is great to learn each of these related web building tasks (form validation, passing and catching variables with ASP, CSS) but mostly the erstwhile web-builder just wants a form that works. 

Microsoft servers have two ways of handling emails.  The older servers use CDONTS (Collaboration Data Objects for NT Servers) and the newer servers use CDOSYS (but can be configured to continue to use CDONTS).  Since we're seeing most FrontPage sites on older servers we built this "form to email" page for CDONTS.  Tune in next week to the CDOSYS version.

Screen Shot is below:
Download the code in a 10.9K .zip file HERE.

Screen shot and link to example page

POSTED: Thursday, January 22, 2009

301 Moved Permanently - Redirecting URLs with ASP

You may have used the meta re-direct in the past. The numeral sets the number of seconds before page refresh (zero in the following example):<meta http-equiv=refresh content=0;url=newpage.asp>This 301 method allows you to quickly implement a 301 Moved Permanently status from an old page to a new one.First, simply replace ALL of the old HTML/XHMTL code with this:ASP Version<%@ Language=VBScript %><%Response.Status=301 Moved Permanently Response.AddHeader Location, /newpage.asp%>In...

Read More "301 Moved Permanently - Redirecting URLs with ASP"