More Spam ideas - Posted (981 Views)
Junior Member
Mr Pink
Posts: 387
387
Most of the pointless spammers that register on my forum don't bother posting anything. Instead they have lots of links in thier profiles which I believe doesn't benefit them.
One common link between them all is that they put their country down as "Congo, Democratic Republic of"

Is there a way that I can get the forum to ignore registrations that select Congo as thier country?
I don't want to display an error, I'd rather the forum just did nothing with these.
Martin
Leyland Forum Leyland Lancashire UK
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Snitz Forums Admin
ruirib
Posts: 26364
26364
You can add a check constraint to avoid any registrations with that country:

Code:

ALTER TABLE forum_members
WITH NOCHECK ADD CONSTRAINT CK_NO_CONGO_MEMBERS CHECK (M_COUNTRY<>'Congo, Democratic Republic of')

This is for SQL Server and should be run in SQL Server Management Studio. With this, all such registrations will fail.
Posted
Junior Member
Mr Pink
Posts: 387
387
Thanks Ruirib, I see you have found my weak spot blush
Martin
Leyland Forum Leyland Lancashire UK
 
You Must enter a message