Jump to content

Secure 2 folders with ssl ?


Skylight_lady

Recommended Posts

Hi guys,

 

I'm not sure if this is the right forum to post. Please move if not.

 

My problem is that I have a website with 5 child folders inside the www folder. Now what I want to do is buy 1 ssl .... Will I be able to secure just two of those folders and how via cpanel?

 

Also, what do I have to do to make sure the key lock on the bottom of the screen is clean eg all href links and image links should be https .... Does it matter if the are in one of the child folders not secure but still uses https to access it as written in the code address.

 

Also, am I not allowed to link to an external website in the secured folders?

Link to comment
https://forums.phpfreaks.com/topic/266479-secure-2-folders-with-ssl/
Share on other sites

The SSL isn't particularly worried about the files, but more to how they are served.  If your CSS, JS, or HTML requests for an image via HTTP protocol, you will get a warning regard insecure stuff.  You can get around this by serving full path imagery, css, and scripts by omitting the protocol, ie //example.com/assets/css/style.css.

( see the alway useful paul irish blog. )

That also sounds like using the full path like https://www.myweb.com/securefolder/test.php will also do the same trick from what you and that blog is saying. Doesn't this also mean doing redirects for the folders to make them https without a user changing it to http in the web browser.

That also sounds like using the full path like https://www.myweb.com/securefolder/test.php will also do the same trick from what you and that blog is saying. Doesn't this also mean doing redirects for the folders to make them https without a user changing it to http in the web browser.

 

There is no reason for a normal user to tamper with the links, images, css you are serving, and no reason to be concerned about it, if they do.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.