Redirection by time
-
Hi!
I would like to use Captive portal as my general redirector for Free Hot Spot users. As the Hot Spot will be for free every 10th request for web page would be commercial page with banners, special offers from our sponsors - the redirected page. With Captive Portal is all good but, I would like more often to "serve" the redirected page; not only at the begining.
Is it possible to completely remove login and only keep that every 10th request is shown as redirected page? If not every 10th page, it could be good that every 3-5 minutes shows redirected page, that use would have to watch for 5-10 secs.
Any idea or suggestion how to achive this?
Thx for helping me.
A. -
Use the Captive Portal File Manager to upload a second .php page. Now issue a javascript and or meta redirect on the main captive portal page to redirect to the newly added .php page.
Now put the 10th person logic into the .php page that you added w/ the Captive Portal File Manager and you should be set.
-
I think he didn't mean the 10th person but every 10th page request of each user.
But I cannot figure out how much difference that would make. -
I think he didn't mean the 10th person but every 10th page request of each user.
But I cannot figure out how much difference that would make.Hi!
Yes, I meant the every 10th page request by user. Is it very hard and complex to implement? Any suggestion or example?
THX!
-
Yes that complicates it a lot more. After CP Auth a firewall rule is installed and at this point all normal CP checks are completely ignored and then a periodic cleanup script is run to cleanup sessions, etc.