Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Redirection by time

    Captive Portal
    3
    5
    4.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      alexslo
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • S
        sullrich
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • jahonixJ
          jahonix
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • A
            alexslo
            last edited by

            @jahonix:

            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!

            1 Reply Last reply Reply Quote 0
            • S
              sullrich
              last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.