1

I am a beginner with raspberries and I wanted to modify the hotspot of the raspberry. I would like that anyone could enter the hotspot with a password, but in order to really use the functionalities of it, he has to authentificate himself with a login.

I don't know if you can imagine, but the same system is used in bus- or hospital-wifis, for example. You connect to them (there is no password to connect to the hotspot), but in order to use the WiFi, you need to login with a username and password on a website you got redirected to.

Now I would like to recreate the same system on my Raspberry 3b+. Is this even possible? If so, how? I haven't found anything useful yet.

Another question, but this one is not so important: would there be a possiblity to scan a QR-code in order to get to the login page? Would be nice to experiment with this, and if anyone has an answer, I would be glad if you could share it with me!

Thanks in advance!

6
  • The technology you are looking for is called a captive portal and sits better under the general Linux exchange than here. A classic solution is based on nodogsplash found at github.com/nodogsplash/nodogsplash As for QR codes they can point to a URL that could be the log-on page many free web generators e.g. qr-code-generator.com As neither of these are Pi dependant I'm voting for a close.
    – user115418
    Dec 4 '20 at 15:29
  • 1
    Does this answer your question? raspberry pi as access point with captive portal Dec 4 '20 at 15:51
  • @Andyroo I asked kinda the same question on stack overflow, but it got moved to this forum. Sorry, don't know where it's okay to ask. But yes, I think the captive portal is what I am looking for! Thanks a lot! Dec 4 '20 at 15:59
  • 1
    @DmitryGrigoryev I think that's it, thanks! Dec 4 '20 at 16:02
  • You may still want to ask about the QR-code once you get the portal running if you can't figure it out yourself. It's best not to ask several questions in one post on this site, that only invites partial answers. Dec 4 '20 at 16:05