shut down wifi if no Internet

Hi everyone,

I have a bunch of mobile phone users using a password protected Mikrotik wifi Internet access for free.
In case of Internet connectivity outage, the clients are not be able to use their local mobile LTE Internet connection (Android devices) as they keep connected to the AP.
These are elderly people who are not able to identify the problem and switch off wifi on their devices.

Does anyone have an idea how to switch off the Mikrotik wifi in case the Internet connection is down?

Many thanks in advance,
Peter

You could use netwatch, when the internet is down, you could with a simple script disable the wifi interface, when Up then enable it…

Thanks, this should do it,
Peter