Script for deauthenticating new connections automatically

Hi there

I was wondering is there a script or something I can use to let the router-board automatically deautenticate the new connections to my WiFi running?

Example : normal WiFi signal open network new connection coming in router-board hands out IP from dhcp-server and adding its details to access list then deautenticate the new connection till I manually allow by going to access list and changing both authentication and forwarding to yes (want to keep it open so no one can learn the key by means of hacking or simply passing it along)

Okay I’m new to scripting and this is what I have so far

added a schedule for the new connections with a interval of 00:05:00 so I pick up all new connections

then added this script

/interface wireless registration-table print
:if ( uptime < 5m00s ) do= copy to access-list

but get stuck so I’d really like some headers on where to go !

I found a different way of approaching this problem and got stuck but maybe someone could help me with this

code:

:foreach LEASE in=[/ip dhcp-server lease find] do={
/ip firewall filter add chain=forward src-address=[/ip dhcp-server lease get $LEASE address] action=drop;
}

this adds all dhcp leases in the firewall filter which stops traffic to go to that ip`s but I only need to stop the new dhcp leases ! Any ideas ?