Captive Portal - Terms of Service

Reply
L7 Applicator

Re: Captive Portal - Terms of Service

Hi @_slv_

 

			<pan_form/>
		<div id="desc"></div>
		</div>
		<div id="desc">Some text here</div>
		
	</div>
</td></tr>
</table>
</body>
</html>

 

All right. To provide the solution to everyone who is interested, I removed the details of your customized captive portal website. You have to add the following code AFTER the part "<pan_form/>". The text and URL of course you could change for your environment.

<script>
$(document).ready(function(){
    var $input = $("<tr><td colspan='2' align='left'><input type='checkbox' id='terms' name='terms' value='terms' style='width:20px;' required />I accept <a href='URL-TO-TERMS-AND-CONDITIONS-DOCUMENT'>Terms and Conditions</a></td></tr>");
	$('#taLogin table tr').eq(1).after($input);
});
</script>

This will add a checkbox to the loginwebsite on a new line after thebpassword field and login should not be possible without activating the checkbox. This solution probably only works with your version of PAN-OS ( @_slv_ what version do you have installed?), as specially the captive portal website in PAN-OS 8 changed completely, so as this is not a solution out of the box, it needs to be retested after major softwareupdates and may be also slightly adjusted.

 

Hope it works in your situation as I have only tested this in the browser directly.

 

Regards,

Remo

L4 Transporter

Re: Captive Portal - Terms of Service

Hi @vsys_remo

I played a bit with that code but It deosnt'w work for me (I'm not html pro .,...sorry)

 

As You mentioned - PANOS8 completely changes code od CP logon page. I think that is time to start over with new solution. I'm using my since PANOS5...

 

I hope that You will find some time to help us - many of us need such feature on CP logon page.

 

 

Regards

Slawek

L7 Applicator

Re: Captive Portal - Terms of Service

@_slv_could you send me again the captive portal html code that you configured on the firewall? this time not the one shown in your browser.

Highlighted
L4 Transporter

Re: Captive Portal - Terms of Service

@vsys_remo is on your mailbox

L7 Applicator

Re: Captive Portal - Terms of Service

@_slv_do you plan to upgrade to 8.0 soon?

L7 Applicator

Re: Captive Portal - Terms of Service

@_slv_you know that PAN-OS 5 is end of life since november 13, 2016?

 

So I will try to make it work on PAN-OS 8 but I think the only way for you is upgrading? (On PAN-OS 5 the required jquery Javascript library is probably too old for my proposed solution)

L4 Transporter

Re: Captive Portal - Terms of Service

Hi @vsys_remo

 

Sorry for my english ...

 

I had on my maind  that my CP web page was created on PANOS5 (if I remember corectly) and wasn't changed until now.

 

Now I'm using PANOS 8.0.7

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!