Page 1 of 1

simple advertisement functionality doesn't work

Posted: Fri Aug 29, 2014 5:01 pm
by fidget
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.

Re: simple advertisement functionality doesn't work

Posted: Fri Aug 29, 2014 5:56 pm
by freemannnn
transparent-proxy=yes

Re: simple advertisement functionality doesn't work

Posted: Fri Aug 29, 2014 7:00 pm
by SurferTim
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. :(