Community discussions

MikroTik App
 
User avatar
cpresto
Member Candidate
Member Candidate
Topic Author
Posts: 177
Joined: Tue Jul 18, 2006 3:12 pm

Mikrotik Web Proxy

Fri Dec 23, 2011 6:59 pm

Hello,
I would like to build an advertisement based hotspot network using, if possible, RoS.
In order to avoid banners, blocked by all browsers, I would like to create a system that understands when the user changes the page that he is looking at and redirect him the the desired advertisement page for a given number of seconds.
RoS seems able to do this, understanding the state of each single connection(http://wiki.mikrotik.com/wiki/Manual:IP/Proxy).
Could it be possible to write a script to be executed when a connection chages his state?
E.g. the connection is in the state "connecting" or "resolving"; this means that the user is changing the web page viewed since now. This should be the trigger for several actions to be performed:
- instead of the requested URL, a different one should be displayed for a given number of seconds;
- once the time is over, the user will be redirected to teh desired URL;

Thank you in advance for any advice,
Rgds

Who is online

Users browsing this forum: No registered users and 61 guests