I am trying to make a custom router login page. I want the user to ridirected to the login page when he/she connects to the wifi network. How can i make such a login /registration system?

closed as too broad by joeqwerty, HopelessN00b, Sven Jul 2 '17 at 17:59

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


What you are looking for is called captive portal.

Wikipedia describes some methods for implementation:


A PHP implementation can be found here: http://www.andybev.com/index.php/Using_iptables_and_PHP_to_create_a_captive_portal

Very popular implementation is chillispot (there is also a good description of the technology in the backend):


Often you will also need a capable router e.g. a device that uses open-wrt: https://en.wikipedia.org/wiki/OpenWrt#

Not the answer you're looking for? Browse other questions tagged or ask your own question.