Task: PHP SSL/HTTPS Detection and Redirect
Task: PHP SSL/HTTPS Detection and Redirect: a task in Terminal-Lego-15k (Harbor dataset). Create a PHP script that detects whether the current page was accessed using SSL (HTTPS) and redirects to the secure version if it wasn't. This is a common security practice to ensure users access sensitive…
The task
Create a PHP script that detects whether the current page was accessed using SSL (HTTPS) and redirects to the secure version if it wasn't. This is a common security practice to ensure users access sensitive pages (like login pages) only through encrypted connections.
Part of PrimeIntellect/Terminal-Lego-15k.