title: Mikrotik Hotspot / Captive Portal Auto-Login after X seconds
body: <p>Thinking about getting a mikrotik router for a small project .. </p>
  
  <p>but I wanted to know if the following in any way possible w/ Mikrotik Hotspot feature?</p>
  
  <ol>
  <li><p>Users connecto to wifi w/o pass </p></li>
  <li><p>sees the captive portal w/ ads (basically a website remotely hosted) for x seconds </p></li>
  <li>then user is allowed internet access (redirected to google.com) </li>
  </ol>
  
  <p>So basically what i need to do is:</p>
  
  <ol>
  <li>Make microtik allow internet traffic to, and load, a remote webpage as its captive portal (mypage.com/captivePortal.php)  </li>
  <li>Disallow internet traffic to anything else until x number of seconds, or better yet, when my page triggers the approval</li>
  <li>User is then allowed internet access</li>
  </ol>
  
  <p>Going thru the docs I can't find anything about "wait time" for the hotspot feature... But I was thinking it would be nice if I could simply code the captive portal website w/ javascript timeout that would call a function that triggers the Mikrotik router to allow access.. </p>
  
  <p>Now since I don't think there's any exposed/public methods i could call that would tell the router to "OK allow access now" on the specific user viewing the Portal, perhaps i could set 1 user/pass for all guests of the router, then have a hidden form of user/pass pre-filled in.. and then have javascript trigger "submit form" when I'm ready? </p>
  
  <p>How am I doing so far? Would love to be guided....</p>