Re: How to detect if a text body contains forbidden words

[email protected] (Gunnar Hjalmarsson)
Newsgroups perl.beginners.cgi
Message-ID <[email protected]>
Bo Berglund wrote:
> The problem is that we are now being swamped by requests filled with a
> lot of http links instead of our customers business related questions.
> It hurts only our sales people who have to read all of the crap the
> spammers enter. So I would like to stop it right at the website by not
> sending anything at all out with links in the text.

It's common practice to include web addresses in emails, so treating all 
messages with 'http://' in them as spam will most likely give you false 
positives.

CGI::ContactForm, as Owen mentioned, uses two techniques to stop spam. 
The 'spamfilter' regex is one of them, and there is also a cookie based 
method for preventing automated messages from being sent.

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.