More Spam ideas - نوشته شده در (982 Views)
Junior Member
Mr Pink
مطلب: 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
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Snitz Forums Admin
ruirib
مطلب: 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.
نوشته شده در
Junior Member
Mr Pink
مطلب: 387
387
Thanks Ruirib, I see you have found my weak spot blush
Martin
Leyland Forum Leyland Lancashire UK
 
شما باید یک متن وارد کنید