Yes, you can do it, but you will need additional programming software to connect to the MikroTik hotspot and when this data is filled, it is sent to the database.
You can collect information about users connected to a MikroTik HotSpot, such as name and email, and store it in a local database. MikroTik RouterOS allows great flexibility in HotSpot configuration, including customizing the login page to request additional information from users before allowing them access to the network.
We explain how you could configure and manage it:
1. Login Page Customization
To collect additional information such as name and email, you will need to customize the HotSpot login page. This involves editing the HTML files and possibly scripts associated with the HotSpot login page, which are located in the RouterOS file system.
- Edit Login Page: You can access and modify the files on the login page using tools like the WinBox file manager or by connecting to the RouterOS file system via FTP. You will add HTML form fields to collect the name and email.
2. Management of Collected Data
Once you have modified the login page to include the additional fields, you will need to implement a method to handle and store this information. Here are some strategies:
- Scripting in RouterOS: MikroTik RouterOS includes scripting capabilities that can be used to capture the information entered by the user and perform actions with it, such as storing it in a file within the router itself or sending it to a remote server.
- Using an External Server: For more advanced data management, you can configure the login page to send the collected information to an external server where a script is executed (for example, in PHP, Python, or Node.js) that processes the data and stored in a database. This offers greater flexibility and security in the management of the collected data.
3. Privacy Compliance
It is essential to consider the privacy and data protection implications when collecting personal information from users. Be sure to:
- Inform Users: You must clearly inform users about the information you are collecting and how it will be used. It is advisable to provide an accessible privacy policy during the login process.
- Comply with Applicable Laws: Depending on your location and that of your users, you may be subject to specific regulations regarding the protection of personal data, such as the GDPR in Europe. Make sure you comply with these laws in terms of collecting, storing and processing personal data.
4. Technical Considerations
- Safety: Implement appropriate security measures to protect information collected from users.
- Maintenance: Be prepared to maintain and regularly update the system that handles user data, especially if you use an external server and custom scripts.
Collecting additional data from HotSpot users can be very valuable for marketing and communication purposes, but must always be done transparently, securely and in compliance with applicable data protection laws.
There are no tags for this post.