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

Redirection by time

Scheduled Pinned Locked Moved Captive Portal
5 Posts 3 Posters 4.3k Views
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 Jun 27, 2007, 9:24 PM

    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 Jun 28, 2007, 12:12 AM

      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
      • J
        jahonix
        last edited by Jun 28, 2007, 10:22 AM

        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 Jun 28, 2007, 5:58 PM

          @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 Jun 29, 2007, 4:56 AM

            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
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received