'How to make a web page accessible only after scanning a QR code
Good day. I want to make a simple CRUD guest form system with Laravel. I want to make a web page containing a form that only can be accessed after scanning a QR code. Here is the flow:
User -> Scan QR code -> Access to web page -> Fill in the form -> Submit.
The problem is that after scanning a QR code the user will directed to that web page with a link shown to the public, making that the user can copy or save and access the link later without actually scanning the QR code again. This will let user to input their data even without being asked or scanning the QR, leading into a data redundancy in the database.
Is there any idea how can I make this to work? Or maybe another solution?
Thank you.
Solution 1:[1]
If you want to create a link with temporary lifetime and signed, you can create signed URL and use that. have a look at the documentation. https://laravel.com/docs/9.x/urls#signed-urls
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Alireza Jahandoost |
