Log In
4 votes
I wanted to convert my home modem to coffee shop and give internet to my customers . But due to security reasons users should register their mobile before they get access to inernet.

How can I build this project ?

Where should I start with ?

Currently i have got D-Link modem
in Pure Web Development
retagged by
You have to design a webpage (or somehow known as a gateway) by using one common IP. Users have to type the IP and that webpage will act as a gateway . They will fill their login credentials and get internet access .
How abt contacting ur ISP and opting for a solution?? Since it'd be on a commercial basis. :)

@Kapil  Yes this is excatly what I wanted to implement . (my problem statement explained better ) 

But the question is how !?

  • Could u pls help me where to start with at least

Suppose I have made a webpage and user checking using Php and MySql .  Where do I host it ?  Can I host it in public servers if so what should be done at modem to route to that static webpage and block internet access unless user logs in

Any tuitorials or links which explain how to do these things would be a great help 

@Dulqar I think the best way is by creating the HTML page and send an Ajax request to your remotely hosted API. And finally, allow that domain to be access publically even if mac restriction is enabled.

3 Answers

2 votes
This is similar to what they do in Airports etc. I guess this is done by making the wifi free and all users once connected coming to a static webpage. Once they login they get connected to internet. i.e., a proxy manages the internet connectivity - nothing needs to be done with the modem. But this makes the wifi connectivity non-encrypted - not sure if any other solution for encryption exists.

Another easier way is to provide wifi password to customers and change it daily or at periodic intervals. I'm not sure if any modem supports multiple password.
0 votes

I know this question is old now but I just found it out and got its solution. You are talking about Captive Portal:

There are many tutorials for implementing that. Just Google them, or try this:

0 votes

I think this is what you have been looking for

You can implement it in OpenWRT Routers as well as on a Debian based Computer System.

You can modify the default HTML file and customize the splash screen according to your needs.

For making a system with mobile OTP, you need to allow general access to API domain and send API request for OTP, once user is authenticated you can remove the MAC filter so that user can access internet unrestrictedly.

There are lots of possibility and ways of implementing it. Add the code according to your needs.

Related questions

0 votes
2 answers
How to draw a DFA for the below language. $L$ = {$W | W \in$ $ (0, 1)^* $}; $W$ ends with 0 and contains the substring 100 } No. of states in minimal DFA.
asked Jan 24, 2019 in Theory of Computation CSHuB 127 views
5 votes
2 answers
Draw a minimal DFA which accepts a language L over {a,b} 01 [ ((10) * + 111) * + 0 ] * 1
asked Oct 26, 2017 in Theory of Computation ashwina 248 views
2 votes
1 answer
How many nand gate are needed to make 4x1 multiplexer...?
asked Jun 16, 2016 in Digital Logic Sanjay Sharma 5.7k views
0 votes
1 answer
A-->aB/bA/b , B-->aC/bB , C-->aA/bC/a what is the approach ?
asked Nov 17, 2015 in Theory of Computation radha gogia 243 views