Community discussions

MikroTik App
 
fidget
just joined
Topic Author
Posts: 10
Joined: Sat Sep 22, 2012 10:37 am

simple advertisement functionality doesn't work

Fri Aug 29, 2014 5:01 pm

Hello

Can't run the advertisement functionality. In the hotspot user profile: advertise is on, Advertise URL, timeout and interval are specified, but no advertisement redirect or popups happens during hotspot session. Sessions are created with locally specified user.

ip hotspot print
0 name="hotspot1" interface=wlan2 address-pool=hs-pool-14
profile=hsprof1 idle-timeout=1h keepalive-timeout=1h addresses-per-mac=2
ip-of-dns-name=192.168.5.1 proxy-status="running"

ip hotspot profile print
1 name="hsprof1" hotspot-address=192.168.5.1 dns-name=""
html-directory=hotspot rate-limit="" http-proxy=0.0.0.0:0
smtp-server=0.0.0.0 login-by=http-pap split-user-domain=no use-radius=no

ip hotspot user print detail
2 name="mytest" password="mytest" profile=default uptime=0s bytes-in=0
bytes-out=0 packets-in=0 packets-out=0

ip hotspot user profile print
0 * name="default" idle-timeout=none keepalive-timeout=1h status-autorefresh=1m
shared-users=1 transparent-proxy=no

ip hotspot user profile set [find default=yes] advertise=yes advertise-url="http://xxx.xx" advertise-timeout=immediately advertise-interval=2m

What have i missed?

I have tryed to change radvert.html script by adding location header ($(if http-header == "Location")URL$(endif)), but still have the same results.
 
freemannnn
Forum Veteran
Forum Veteran
Posts: 700
Joined: Sun Oct 13, 2013 7:29 pm

Re: simple advertisement functionality doesn't work

Fri Aug 29, 2014 5:56 pm

transparent-proxy=yes
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: simple advertisement functionality doesn't work

Fri Aug 29, 2014 7:00 pm

but no advertisement redirect or popups happens during hotspot session.
Most web browsers have popups blocked by default. My web browsers (IE and Chrome) don't even popup the "you are logged in" page unless I allow popups for the router's hotspot IP.

Try setting your web browser to allow popups. Depending on the browser, you can allow all popups, or just exceptions for specific websites.

edit: You may have a hard time convincing any of your clients to allow popups if they know it results in ads. :(

Who is online

Users browsing this forum: Majestic-12 [Bot], spookymulder84 and 55 guests