How to display a page when user connect to a wifi - hotspot

I want to display a local web page when a user connects to my wifi. like a captive portal that when a user connects to the network, his device (i.e. android os) automatically detect that the network requires the user to sign in. I know, that I can set up a captive portal for this, but is there any easier way to do this?

Captive Portal is the only way (and/or by other ways specified by the creator of the network hardware). There are some nice open source captive portals:
https://packetfence.org/
If you want to research more you'll need to look up more about: Network Access Control (NAC)

Related

Where can I find Facebook Wifi service specifications?

I'm trying to implement Facebook Wifi Checkin using a Raspberry Pi.
I'm using CoovaChili to catch user and redirect to my captive portal and everything is working great.
I tested some wireless routers that provide Facebook Wifi and they redirect me to this page, https://www.facebook.com/wifiauth/config?gw_id=NUMBER when I need to configure Facebook Wifi.
How can I generate this gw_id number?
I think there I need to register the client (raspberry pi) at facebook and get this number then I use this number to associate with some Facebook Page and then get checkin when someone try to connect to Internet.
I can't find any page, anywhere saying something about this gw_id number.
Thank you.

connect to internet if users like my website

I am building a guest wireless access for a pub. The idea is that users will be granted with internet access if they like they pub's website.
Now I was checking the requirements on facebook to check this and I found this:
Gate access to your app, or some content within your app based on
whether or not someone has liked a page.
NOTE: facebook wifi is not a solution for me hence I am using ubiquiti unifi AP
Does it means that I can't read if my clients like my page in order to allow them to use my wifi? is there a way around it?
If that's the solely purpose of the user_likes permission for your app you will very likely not pass the Login Review process.

captive portal - allow internet access after facebook like

I want to create a captive portal ( if possible in dd-wrt ) that has an open wifi network. When someone connects he gets a pop-up page that asks him to like a facebook page. If he likes ( or even better checks-in ) then the captive portal would allow full internet access. Any suggestions - ideas?

Custom Wifi hotspot with Facebook or Twitter login

I would like to install a custom Wi-fi hotspot which needs login to enable Internet access with this requirements and I would like to know if someone has installed.
Requirements:
Login server: I have my own OAuth server built with Java/Spring to
enable user login with Twitter and Facebook via REST API.
Wi-fi access point: allows user Internet access when login success.
When the user selects the Wi-Fi network, the landing page must appear with the login button.
I' ve got the login module, but I don' t know how to install some kind of Wi-fi hotspot with a custom landing page that could link with this login server. I've searched for some kind of tool or software, but I found nothing. Any ideas or suggestions, please?
Thank you very much!
I just stumbled over a google code project which achieves what you want for routers running openwrt.
The basic setup is this: You run a router with openwrt (a list of supported Hardware can be found on their wiki). Then you install wifidog to provide your portal page and run the project (which now seeems to have moved here and has been renamed to KikiAuth) as the auth provider for wifidog.
Since KikiAuth is opensource it should be easy to adopt the method it uses to provide the auth information for wifidog into your existing software and use it as the provider instead if you want to manage the login process yourself.
More details about the setup can be found on the page of the google code project.

How to check WiFi is pass through web page login?

I need to check WiFi is pass through web page login or not, but I don't know how to do.
So I need someone can help me or explain how to wifi via web page login. thanks.
On Android: You can implement your own RedirectHandler and then use it in an HttpClient to hit a website that should never be redirected. If you get redirected then this access point is likely a walled garden (no access to the internet, without further steps). After that you are unlikely to be able to simply log in for the user programmatically, since the user could be anywhere and may need to pay to use the internet: hotel, airplane, coffee shop. Instead the best course of action is to inform the user with a dialog that they will need to perform additional steps to reach the internet using the Wi-Fi access point they are currently connected to and then allow them to easily open the web browser to a website that will trigger the redirect such as www.google.com. I know this solution works because I've implemented it myself before.
On iPhone this probably isn't necessary since the iPhone already detects walled garden Wi-Fi access points as soon as the user connects to them and shows the browser. If the user fails to connect to the internet the iPhone disconnects the user from the Wi-Fi access point.