Skip to content

block access to webgui via hotspot #1198

Answered by billz
tom-321 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, there are two ways to do this. The simplest method is to set the web server's bind address in RaspAP's System > Advanced tab to your LAN's IPv4 address. See #295

A somewhat cleaner method with a '403 Forbidden' response can be done manually with lighttpd. You could modify lighttpd's main config directly, but to keep things neater we can use RaspAP's own configuration in lighttpd's /conf-available. Edit it like so:

sudo nano /etc/lighttpd/conf-available/50-raspap-router.conf

Add the following to the end, substituting the 192.168.0.0/16 private IPv4 address range (192.168.0.0 – 192.168.255.255) for your own network:

# deny access to RaspAP admin for users that
# are not in the 192.168…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tom-321
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants