Quote:
Originally Posted by amcd
Great plugin. Will install right away. Its simple but looks good. Have seen other similar hacks earlier but this seems better.
Two questions, though:
Why does your description only mention TLD? I glanced over the code and it uses strpos in the whole message to ascertain if the message should be blocked or not. Doesn't that mean we can use any text - word or phrase - to trigger the spam check?
Also, I found your if statement a bit weird. If I understood it correctly, it says:
if the post doesnt contain any offending stuff
then
original post = original post
else
original post = special predefined message
isnt it simpler to write:
if the post contains any offending stuff
then
original post = special predefined message
|
Yeah, you're right on the ball. It checks for instances of anything you enter between the , , 's so you could enter .de,skycatcher,.com and it would considder the word skycatcher as spam if it finds an instance of that in the post, but it was intended to stop constant attempts to display links etc, so you can use it as you see fit, but that's on you
Hey! I like my logic