hotspot for certain websites only

hello all
I want to make the authentication hotspot system to work for certain websites which i have
added in address list
i tried to make the same rules of hotspot with determining the src/dst address list
but i dont know what to change the src or dst address list in both filter rules and nat rules

or any other way will be appreciated
thanks all

Turn on the Hotspot unconditionally, then use the customization hooks to prevent it from acting on anything but a list of IPs.

Let’s assume you want the Hotspot to run only when users access 1.1.1.1, 2.2.2.2, and 3.3.3.3.

/ip firewall address-list
add list=hotspot-targets address=1.1.1.1
add list=hotspot-targets address=2.2.2.2
add list=hotspot-targets address=3.3.3.3
/ip firewall nat
add chain=pre-hotspot dst-address-list=!hotspot-targets action=accept

That will all traffic going to an IP address other than what’s on the address list to be accepted before the Hotspot processes it.

:smiley: thank you
but when i try this it open the sites with connection error page :frowning: