Let's talk now.
407-476-6930 / 850-366-8392 (PCB)

Force a Secure Page in PHP

by Brandon Welch
Web Designer/Developer & Web Expert
Connect with me: | Facebook | LinkedIn

Website security is becoming more important every day. We rarely go a month without hearing about a major brand being hacked, and its customers/users personal information being compromised. It is vital that pages where users are enter sensitive information be secure. Below is a little snippet of PHP code that will ensure that your page is accessed securely.

The Code

if($_SERVER[‘SERVER_PORT’] != ‘443’) { header(‘Location: https://’.$_SERVER[‘HTTP_HOST’].$_SERVER[‘REQUEST_URI’]); exit(); }

ClicksCrazy takes Security Seriously

At ClicksCrazy, we take website security seriously. The business owners of Panama City Beach deserve to have quality websites that protect their customers and themselves. Always be sure that your secure pages remain secure throughout the user funnel.