Re: checking for and enforcing https
| From: | tedd | Date: | Tue, 26 Feb 2008 15:16:13 +0000 |
| Subject: | Re: checking for and enforcing https | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-270165@lists.php.net to get a copy of this message | ||
At 3:47 PM +0100 2/26/08, Per Jessen wrote:
tedd wrote:Let's take this scenario. I have a site that has http and https directories with the https having a certificate. I want to sell stuff. I offer the items for review in the http directories. Then a user wants to purchase something and I direct them to a unique script in the https directory and that script takes their sensitive data and finalizes the sale. What's wrong with that? Why would I also want to check if "that a page is accessed only via a secure connection?" Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comSometimes I feel like a child here. Under what circumstances would one require that? If your script is in a https directory, isn't that secure? OR, is this something else? Please explain.You might want to do such checks if your website (www.example.com) is accessible over http and https both. Typically you'll have separate content, but it might be possible for a user to accidentally access non-secure content over https which is just wasteful, or vice versa which is clearly a security risk.