The way you have it isn't going to work. For example, let's say www is in your text file. $1 is www. test. com (without spaces... the forum's converting the link on me). You are doing a search for *www.test.com*, which will of course not be found in your text file. You're basically doing it backwards. You want to see if the words from your spam file are in what is said instead of seeing if what's said is in your spam file.

Spam management can be tricky because you have to check a lot of words and variations and trying to do it from a basic text file may not be the best solution. In many cases, a regex solution will work far better for this sort of thing.

Last edited by Riamus2; 14/02/12 07:48 PM.