Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Getting Started / July 2006



Tip: Looking for answers? Try searching our database.

How to delete Messages with Certain Word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel Eng - 28 Jul 2006 08:35 GMT
Hi, I've been getting a lot of spam lately from my comments form. My comments
are stored in a DB. The problem is the spam keeps coming every day and
sometimes they come in tens and hundreds. This is really frustrating and
irritating. I am thinking of putting a CFQUERY on my application.cfm file that
searches for spam in my comments (basically, those entries that have lots of
<h1> and <http> and [url] words in them. And if there are such comments, they
are immediately deleted from my database.

Does anyone give an example how I can do this? Or does anyone have a better
solution to this?

Thanks! Any help is appreciated.
Dan Bracuk - 28 Jul 2006 12:50 GMT
To delete records that are already there.

delete from mytable where somefield like '%http%'

For day to day stuff, instead of inserting and deleting, just don't insert it.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.