My requirement is to configure a access point to open a single website forcefully. It will be a open wifi without authentication, any user an can connect but when he/she try to open any link it will redirect to my locally hosted website, is this possible?
Actually, a dumb ap cannot do this. It must be running in a routed mode, or at the very least, it must be the dns server for the connected clients. If it is a dumb ap, it is effectively transparent and cannot affect any routing at all, and it cannot be the dns server for only the directly connected clients.
Thanks @frollic, let me try this, is this possible to host that local site in my router, it has few static pages, but pages has some data from other urls.. is this possible?
not sure that it's the case here, nothing stops you from running a DHCP and DNS combo on an AP ?
no, because you just said everything should resolve to one IP, unless you're using IPs instead, and the AP/router is connected to a network.
then you need to set up the fw, to only allow outgoing traffic to certain IPs, otherwise the whole internet will be available, yet only by IP.
and you'll need it to be set up as a router.
On a dumb ap, most configurations require that dhcp is disabled. If dhcp is enabled on a dumb ap, it must be the only one on the network it serves, otherwise there will be a conflict. Further, it is serves dhcp and advertises itself as the dns server, it would then do that for the entire network.
A solution is to use a dumb ap + guest network configuration, or simply to use the ap as a router.