php:setting_up_hsts_in_php
Differences
This shows you the differences between two versions of the page.
php:setting_up_hsts_in_php [2016/10/10 22:40] – created peter | php:setting_up_hsts_in_php [2019/11/29 16:20] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== PHP - Setting up HSTS in php ====== | ||
- | |||
- | |||
- | To test HSTS create the following PHP files. | ||
- | |||
- | Simply to navigate to https:// | ||
- | |||
- | Make sure when you access the page that you do so using **< | ||
- | |||
- | |||
- | ===== Enable HSTS ===== | ||
- | |||
- | |||
- | <file php enableHSTS.php> | ||
- | <?php header(" | ||
- | echo "< | ||
- | </ | ||
- | |||
- | |||
- | ===== Disable HSTS ===== | ||
- | |||
- | <file php disableHSTS.php> | ||
- | <?php header(" | ||
- | echo "< | ||
- | </ | ||
php/setting_up_hsts_in_php.1476139203.txt.gz · Last modified: 2020/07/15 09:30 (external edit)