mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1650] How to disable update and info pages? #1404
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1404
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @georgevbsantiago on GitHub (Aug 29, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1650
Hello,
I limited the display of the menus with the method:
However, when we typed "192.168.4.1/update" and "192.168.4.1/info", we were able to access the HTML pages.
Is there a way to disable the "update" and "info" pages so that the user cannot access them through the browser?
@georgevbsantiago commented on GitHub (Aug 29, 2023):
In 'wm_consts_en.h', I changed the values to "". Apparently it worked. But I don't know if this is correct or can cause bugs.
@tablatronix commented on GitHub (Sep 8, 2023):
That works, you can also add overrides to those routes in user code
@tablatronix commented on GitHub (Sep 8, 2023):
I am not sure there is a way to remove webserver handlers, maybe an empty lambda, but I had crashes with my preliminary tests.
I hope to add these features as build options but for now ust use your own handler for these, I will probably also make wm.handleNotFound public
So removing the menu and options to remove buttons and overriding the routes. You could also add your own auth here also in user code.
@tablatronix commented on GitHub (Sep 8, 2023):
eb27c525e3@tablatronix commented on GitHub (Sep 8, 2023):
#982