fbpx

Is there a way to indicate the consumption in the login window in the MikroTik hotspot?

In MikroTik RouterOS, it is possible to configure the hotspot login window to show relevant information to the user, including data consumption.

However, directly displaying data consumption in the hotspot login window is not a direct or default functionality and may require some customization and use of scripts or integration with external systems.

Here's how this could be achieved:

1. Using User Profiles and User Manager:

  • User Profiles: You can define user profiles within the hotspot settings in MikroTik, which may include data limits. These profiles control access and can limit the amount of data a user can consume.
  • User Manager: It is a more advanced user management system that can be integrated with MikroTik hotspot. It allows more detailed management and can store user data consumption statistics.

2. Customization of the login page:

  • To display data consumption on the login page, you would need to customize the page's HTML and scripts. This could involve:
    • HTML/CSS: Modify the page design to include space where consumption data will be displayed.
    • JavaScript and AJAX: To make dynamic requests that retrieve the user's data consumption from the MikroTik backend.
    • MikroTik API: Use the API to retrieve consumption data for each user in real time.

3. Implementation of an external system:

  • You can implement or integrate an external system that manages user sessions and records data consumption. This system can interact with the MikroTik API to obtain the necessary data and then pass it to the hotspot login page.
  • External database: Such a system might require a database that keeps records of each user's data consumption.

4. Scripting in MikroTik:

  • MikroTik RouterOS allows the execution of scripts that could calculate and record users' data consumption. A script could be run periodically to update this information and make it accessible through the login page.

Considerations:

  • Safety: When implementing the display of sensitive data such as data consumption on a public page, be sure to properly handle authentication and authorization to protect user privacy.
  • Performance: Implementing additional features on the login page, especially those that require real-time interactions with the database or API, could impact performance. It is important to ensure that the system is optimized and can handle the expected workloads.

In summary, although it is not a functionality directly supported by default in MikroTik, with proper customization and possibly the help of additional tools, you can configure the login window to display information about data consumption.

There are no tags for this post.
Did this content help you?
Facebook
Twitter
LinkedIn
WhatsApp
Telegram

Other documents in this category

Leave your comment

Your email address will not be published. Required fields are marked with *

Tutorials available at MikroLABs

No Courses Found!

DISCOUNT CODE

AN24-LIB

applies to MikroTik books and book packs

Days
Hours
Minutes
Seconds

Introduction to
OSPF - BGP - MPLS

Sign up for this Free course

MAE-RAV-ROS-240118
Days
Hours
Minutes
Seconds

Sign up for this Free course

MAS-ROS-240111

Promo for Three Kings Day!

KINGS24

Present in several = 15%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the Three Kings Day discount code!

* promotion valid until Sunday January 7, 2024
** the code (KINGS24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

New Year's Eve Promo!

NY24

Present in several = 20%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the New Year's Eve discount code!

* promotion valid until Monday, January 1, 2024
** the code (NY24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

Christmas discounts!

XMAS23

Present in several = 30%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the discount code for Christmas!!!

**codes are applied in the shopping cart
Promo valid until Monday December 25, 2023

CYBER WEEK DISCOUNTS

CW23-MK

Present in several = 17%

all MikroTik OnLine courses

CW23-AX

Present in several = 30%

all Academy courses

CW23-LIB

Present in several = 25%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Cyber ​​Week!!!

**codes are applied in the shopping cart
Promo valid until Sunday December 3, 2023

BLACK FRIDAY DISCOUNTS

BF23-MX

Present in several = 22%

all MikroTik OnLine courses

BF23-AX

Present in several = 35%

all Academy courses

BF23-LIB

Present in several = 30%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Black Friday!!!

**Codes are applied in the shopping cart

codes are applied in the shopping cart
valid until Sunday November 26, 2023

Days
Hours
Minutes
Seconds

Sign up for this Free course

MAE-VPN-SET-231115

Halloween promo

Take advantage of discount codes for Halloween.

Codes are applied in the shopping cart

HW23-MK

11% discount on all MikroTik OnLine courses

11%

HW23-AX

30% discount on all Academy courses

30%

HW23-LIB

25% discount on all MikroTik Books and Book Packs

25%

Register and participate in the free course Introduction to Advanced Routing with MikroTik (MAE-RAV-ROS)

Today (Wednesday) October 11, 2023
7pm to 11pm (Colombia, Ecuador, Peru)

MAE-RAV-ROS-231011