Jump to content

Can I use an external URL as a portal?


Recommended Posts

I am trying to use the evil portal module to open an external URL, but a message always appears saying that the connection is not secure and the web does not open.

I tried adding this script to index.php:

<script>

window.location.href = "https://google.com";

</script>

And also tried this:

<form action="https://www.google.com">"

I don't know what can happen, whenever I want to open an external URL from the captive portal, the security error appears, as if I couldn't use https, but my website does have https.

Normal portals do work for me, the problem is when putting an external url.

I have never created captive portals and my failure is probably silly, if anyone knows what can happen, I would really appreciate it.

(sorry for my english, i use a translator 😅)

Link to comment
Share on other sites

  • 5 months later...

I know I'm reviving an old thread, but I'm about to try this myself and came across this while looking for discussions on the topic.

I suspect that when you try to redirect a user to a HTTPS site like Google, the browser knows that Google should only be accessed over HTTPS (because of HSTS). In this case it would make sense that your browser is prompting the connection is not secure, as the end-to-end connection cannot be made securely (because your evil portal is proxying it).

You might wish to try temporarily redirecting visitors to a HTTP version of your site (not HTTPS), and from there, have a link or .htaccess file that redirects them to HTTPS. Obviously it's not ideal as HTTP is insecure, but it may be a workaround.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...