-
-
Save jagland/15d15760949773d8287d to your computer and use it in GitHub Desktop.
A captive portal alternative page for pfSense in order to redirect to the redirect url.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$request_uri = urldecode(str_replace("/index.php?redirurl=", "", $_SERVER["REQUEST_URI"])); | |
$portal_redirurl = urldecode("$PORTAL_REDIRURL$"); | |
if(!stristr(urldecode("$PORTAL_REDIRURL$"), $request_uri)) { | |
Header("Location: $PORTAL_REDIRURL$"); | |
exit; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update for pfsense 2.2.4