Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.