Hi,

When you get to this point in the rule, have you already set the 'ban' flag?
The rule below would ONLY be applied if the ban flag has already been set. I
suspect that isn't what you actually want. Is there a reason for having the
flag there?

Also, the '$ban' must not be quoted in the isin rule - quoting indicates it
is a literal string, and it will not be treated as a variable.

You need to change it as follows -

        if (isin("body",$ban)) reject "Your site is banned"

- Roydon L.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, 16 January 2003 9:34 a.m.
To: [EMAIL PROTECTED]
Subject: Re: how to set rul


but i set like that

$ban = "www\.uo\.com"
if (isflag("ban")) then
   if (isin("body","$ban")) reject "yr site is ban"
   end if

and then i tellnews rules_reload
but when my article include www.uo.com it havent block it

thx

--
hkug.org �{�b�����}���ӽ�!!
news://news.hkug.org/official.applygroup
������s�a�U�s�D��
news://news.hkug.org/underground.all-in-one
�mhkug �򥻪��W�n
news://news.hkug.org/3def25b4$[EMAIL PROTECTED]

WARNING�JTHIS ARTICLE CONTAINS MATERIAL WHICH MAY OFFEND AND MAY NOT BE
DISTRIBUTED , CIRCULATED , SOLD, HIRED , GIVEN , LENT , SHOWN , PLAYED OR
PROJECTED TO A PERSON UNDER THE AGE OF 18 YEARS
ĵ�i�J�����~���e�i��O�H�ϷP�F���i�N�����~���o�B�Ǿ\�B�X��B�X���B�浹�ΥX��
���~�֥���18�����H�h�αN�����~�V�ӵ��H�h�X�ܡB����Ω�M�C

"DJ�Ӻ�~~lspstudent" <[EMAIL PROTECTED]> wrote in message
news:3e25ae82$1@netwin1...
> i want to ban a link like www.abc.com and if they post the srticle include
> www.abc.com then error msg will display "yr site have banned pls find
admin"
>
> but i dont know wt i can choose in .rul setting
>
> thx
>
>





Reply via email to