rejetto forum
Software => HFS ~ HTTP File Server => F.A.Q.s => Topic started by: kaler on August 31, 2009, 02:46:26 PM
-
i have a question...
is there a function to ban an user atomatic for a timeperiode?
-
you can use the time events and make a macro which can ban the user or disalow his account after a period ;)
-
yeah but i doesen't understand the event scripts...
when you want to explain it to me..?
-
in your post you say FOR a period, in the subject you say AFTER a period.
it's different ;)
ban for how long? some days?
-
jeah sorry
ban or enable=0 FOR 7 days...
is there a posibility to "unban" all users with one special %reason%???
That means, all ip adresses which are banned for 7 days with the reason of 'false' will be "unbanned" after 7 days???
-
you can, but it's not easy.
put the unban date in the account notes.
{.set account|NAME|notes key=unban={.time|yyyy-m-d|offset=7.}.}
from next version, leaving empty the NAME will make it work on the current account.
then in an event
[+request]
{.if|{.and
|{.not|{.get account||enabled.}.}
|{.{.time|yyyy-m-d.} = {.get account||notes key=unban.}.}
/and.}|{:
{.set account||enabled=1.}
:}.}
this solution is UNTESTED :)
and will work only with next version, bearing the new {.get account.}
-
thank you, but i havn't test it yet...
ive an other question... is there the possibility to ban an IP from a special folder?
-
no.
but you can use diff template to stop showing the file list to some IPs, for that folder
-
you can, but it's not easy.
put the unban date in the account notes.
{.set account|NAME|notes key=unban={.time|yyyy-m-d|offset=7.}.}
from next version, leaving empty the NAME will make it work on the current account.
then in an event
[+request]
{.if|{.and
|{.not|{.get account||enabled.}.}
|{.{.time|yyyy-m-d.} = {.get account||notes key=unban.}.}
/and.}|{:
{.set account||enabled=1.}
:}.}
this solution is UNTESTED :)
and will work only with next version, bearing the new {.get account.}
Hey there, i know this is an old Thread, but i was just looking for this, so thanks anyway
-
thank you, but i havn't test it yet...
ive an other question... is there the possibility to ban an IP from a special folder?
Hey, have you tested it? Did it work? I'm looking for something similar...
Thank you already :)