Davidal VK Posted March 29, 2023 Share Posted March 29, 2023 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 More sharing options...
Riggs Posted September 20, 2023 Share Posted September 20, 2023 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.