Force Redirect To Secure Web Using PHP
Page 1 of 1
Force Redirect To Secure Web Using PHP
Vid
Code:
Code:
- Code:
<?php
// (c) J~Net 2020
// jnet.sytes.net
// jnet.forumotion.com
//
$self=(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "https") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
// exit();
// Checking https
if($_SERVER["HTTPS"] != "on"){
header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
exit();
}
?>
Similar topics
» heres how you redirect unsecure web traffic to a secure protocal using curl and refresh code for php
» Redirect Traffic Linux Web Server
» Two important modules to secure your Apache
» Cracking Zip File Passwords Brute Force With Linux
» how to use usb to secure a pc login
» Redirect Traffic Linux Web Server
» Two important modules to secure your Apache
» Cracking Zip File Passwords Brute Force With Linux
» how to use usb to secure a pc login
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum