Modern hotspot login templates typically separate the interface from the settings. Everything you need to change is in a single file, usually config.js. You don’t need to know how to code to edit it.
Use the right editor
Use Visual Studio Code or Notepad++. Both are free and highlight text to make it easier to read. Avoid Microsoft Word, as it can alter quotation marks and corrupt the file.
Recognize the pattern
The content config.js consists of pairs of names and values, for example:
networkName: "WiFi Berkah",
adminWhatsapp: "6281234567890",
You only need to change the text inside the quotation marks.
Rules to prevent corruption
- Do not delete quotation marks, commas, or curly braces.
- For WhatsApp numbers, follow the example format; they usually start with a country code
62. - When adding a package, copy an existing package block, then edit its contents.
- Save a copy of the original file before editing.
Test it on a laptop first
Open the file login.html directly in your laptop’s browser to see the results. If the page is blank, some quotation marks or commas may have been deleted. Compare it with the original copy.
Upload to the router
Once you’re sure, upload the config.js to the hotspot folder on the router, then reload the login page on your phone.



