html course, website building, perl scripting, mysql databases, web site builder, build a website

  

 



Testimonial

Hey Dave:

You are brilliant! I was skeptical when I reviewed Instant Site Maker. I mean, I am a professional Webmaster after all. The first thing I noticed was the simplicity of your tool. Just plug in the info and walla, a gorgeous web page. I'll be using this on my next mini-site project. Thanks for bringing Instant Site Maker to market. You've made my life easier and probably for thousands of others!

Jim Mandich, Storm Golf

email filters



So you're being bombarded with spam emails from your website. Now you enter a list of words to for your email program (i.e. Outlook express) to look for and filter out those emails, but they don's seem to work.

Ok - let's look at an example, say you want to filter emails that contain the word:

food

You enter your filter but still the emails get through. The reason for this is the way your email program interprets the message and how the mail was sent to you.

So if you take your email with the example word 'food' and look at the source (in Outlook Express right click on the message, choose properties, the detail tab and message source tab).

You might then see something like this:

F<!--8jh8h3-->o<!--89nshwtjq-->o<!--nsjywoUq1-->d

Doesn't look much like the word food does it!

Now <!-- --> are html comment tags so your email program ignores them and everything between them, which means it just displays the word food.

Of course your filter sees F<!--8jh8h3-->o<--89nshwtjq-->o<!--nsjywoUq1-->d and cant find a match with 'food' so lets the email through.

Don't worry there is a solution to this and it involved passing your email to a program, like Perl and it's very easy for a scripting language like Perl to pick-up and filter out stuff like this using a simple IF statement like:

if ($mail_msg =~ /[0-9a-zA-z]{1,10}<!--.*?-->[0-9a-zA-z]{1,10}/ig) {
   print "found comment spam\n";
   exit;
}

The above example looks for up to 10 letters (or numbers) separated by HTML comment tags.

Using simple IF statements you can also search for numbers that replace letters, such as f0od, where a zero has been used in place of the letter o.

If you're not quite up to writing Perl code yet here's something you can do now to help cut down on the amount of unsolicited mail by scrambling your email address on your web page. Just use this free tool - Instant Email Scramble.

Instant Email Scramble is about as simple as they come. Our single screen user interface has only two fields. First you enter your actual email addres. Next you give your email address a title or name which is what inserts onto your web page. Click one button, copy and paste and you’re done.

People visiting your web site will see your email address in plain English on your web page. In fact, when they click on your email hyperlink, your scrambled email address still triggers the 'mailto:' command for your visitor's email software.

The beauty of Instant Email Scramble is that you and your visitors will not notice any difference in how your email links work. But the robot email harvesters will run away empty handed!
 

 




Main Menu

web site tools
build a website blog
html help
html redirect
html marquee
html form
instant site maker
simple style sheet
is your site on life support
internet marketing
meta tags
perl cgi
javascript
javascript display date
email filters
simple email form
protect your code
disable right mouse
help visitors bookmark your site
free hosting vs paid
accept credit card payments
card payments using clickbank
newsletter
sep 29 newsletter
oct 10 newsletter
oct 24 newsletter
what is bandwidth
how much web space
contact us
resources
link to us
Links Directory

 

 

© All rights Reserved. No part of this site may be reproduced or copied without permission of the owners.
Site Directory