I have an RPi3 with Raspbian. I have installed hostapd, dnsmasq, and LAMP.
I have built a web site on this device that all works as I want.
I would like to force any use that attaches to the wifi ap of this device to always browse to the home page of the web site.
The local AP IP address is 192.168.30.1. There is a default index.php page.
How can I make it so that if someone on their phone or computer connects to this wifi and then opens their browser it will always show my home page?
I don't need to have them then log in and be able to access the internet. I just want all addresses to resolve to the local web server.
It can't be the same page on the server because there are several pages that get browsed to in the site.
It is fine to tell them other pages on other sites they try to manually browse to just are not available (404 or whatever).
The main thing is that I don't want them to have to type 192.168.30.1 into their browser to start them browsing. I want that to be automatic somehow.
I did try setting the dsnmasq config address=/#/192.168.30.1
That helps make it so they can't break out of the box, but it doesn't help starting them off when they first open their browser.