This is my old access protection scanner.. post long time ago in tg addon section
. u can edit and use it .just give credit ..i add some prots there. 
menu status,channel {
°Access Checker° ( $+ $group(#accesscheck) $+ )
.$iif($group(#accesscheck).status == on,$style(2),$style(0)) Turn On: .enable #accesscheck | accesscheck | echo -a Acces List Checker Is Now Active
.$iif($group(#accesscheck).status == on,$style(0),$style(2)) Turn Off: .disable #accesscheck | .timerchecktimer off | echo -a Acces List Checker Is Now Disable
}
#accesscheck on
alias accesscheck {
set %access.chan $chan
checktimer
}
alias checktimer {
;change the timer here
.timerchecktimer 0 2 /checkaccess
}
alias checkaccess {
//access %access.chan list
}
raw 804:*: {
if ($group(#accesscheck).status == on) {
;This is for remove auto access for ppl other then u .. u can remove this if u don wan :P
if ($remove($address($me,1),*!*,@GateKeeperPassport) !isin $4) { if ($3 != DENY) { access $2 delete $3 $4 } }
;Kick user when they add *!*@*$* on access
if (*!*@*$* isin $4) && (> !isin $4) && ($3 == DENY) { access $2 delete $3 $4 | access $2 add deny $ial($+(*,$6,*),1).nick | kick $2 $ial($+(*,$6,*),1).nick :Dont Add Deny *!*@*$* On Access . }
;Kick user when they add *!*@*$* on owner,host,voice or grant on access
if (*!*@*$* isin $4) && ($3 != DENY) { access $2 delete $3 $4 | access $2 add deny $6 | kick $2 $ial($+(*,$6,*),1).nick Dont Add Auto $3 Access. }
;Protect u from ppl who adding silent deny on ya :P
if ($me isin $2) || ($remove($address($me,1),*!*,@GateKeeperPassport) isin $4) { if ($3 == DENY) { access $2 delete $3 $4 | access $2 add deny $6 | kick $2 $ial($+(*,$6,*),1).nick : Dont Silent Ban ME :@:@ } }
}
}
on *:OWNER:#: {
if ($group(#accesscheck).status == on) {
if ($opnick == $me) { /accesscheck }
}
}
on *:DEOWNER:#: {
if ($group(#accesscheck).status == on) {
if ($opnick == $me) { .timerchecktimer off }
}
}
#accesscheck end
my advise it change the timer so u don lags so much. 