Welcome Guest, Not a member yet? Register   Sign In
hijacking \CodeIgniter\Controller
#6

I found this script from Killishan's blog and your pdf. 

Code:
class Home extends \CodeIgniter\Controller
{
public function __construct(...$params)
{
parent::__construct(...$params);
// This controller is only accessible via HTTPS
if (! $this->request->isSecure())
{
// Redirect the user to this page via HTTPS, and set the Strict-
Transport-Security
// header so the browser will automatically convert all links to this
page to HTTPS
// for the next year.
force_https();
}
}
Reply


Messages In This Thread
hijacking \CodeIgniter\Controller - by titounnes - 09-24-2018, 03:47 AM
RE: hijacking \CodeIgniter\Controller - by titounnes - 09-24-2018, 08:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB