Edit - RSnake beat me to the punch. Hopefully my post isn't too out-of-date.
Obviously maluc hasn't heard of HTML Purifier yet: http://hp.jpsband.org/ ;-)
You are correct, however, that it's a weight between how much security you want and how convenient it is to write code. Blacklists are convenient, but if you're dealing with an extremely flexible format (i.e. HTML), they are ultimately a losing proposition. It's a tradeoff between a large initial investment, or a smaller initial investment with further troubles along the road as people find ways around your blacklist.
As for zip-codes, I'd go with a numeric check for simplicity, or get a lookup table of zipcodes for comprehensiveness.
Quote
till a good option is to make use of a sort of signature in the browser linked to the pc in combination to the IP...
Haha, say goodbye to privacy when that happens.
Edited 1 time(s). Last edit at 11/07/2006 10:24AM by Ambush Commander.