-->
Blogging Atwork https://googleatwork.blogspot.com/2015/10/how-to-turn-on-https-for-your-blog.html

How To Turn On HTTPS For Your Blog

How To Turn On HTTPS For Your Blog. Recently, Google already supports HTTPS on blogger platforms, but after setting HTTPS availability, blogspot URL is not automatically an HTTPS when first accessed. But when there are visitors who commented, then its URL will change to HTTPS. As i copy from google support that there are three main benefits if we use https.

How To Turn On HTTPS For Your Blog
How To Turn On HTTPS For Your Blog [images:pixabay.com]

There are three main benefits to using HTTPS over HTTP to access your blog:

1. It helps check that your visitors open the correct website and aren’t being redirected to a malicious site.
2. It helps detect if an attacker tries to change any data sent from Blogger to the visitor.
3. It adds security measures that make it harder for other people to listen to your visitors’ conversations, track their activities, or steal their information.
    When you enable HTTPS, visitors can access the encrypted version of your blog by typing https://<your-blog>.blogspot.com.

    To automatically change blogspot URL into HTTPS, we could use a javascript function, we just replace the code http to https then this script will change http to https. Please save the script below just above the code </head>

    <script type='text/javascript'>
    function check_secure() {
    var secssl = /^https/i;
    var blog = document.location.hostname;
    var slug = document.location.pathname;
    var subs = window.location.search;
    if (!window.location.origin.match(secssl)) {
    window.location ="https://" + blog + slug + subs;
    }
    }
    check_secure();
    </script>

    But when it's redirected to HTTPS and your blogspot display turns into error, please follow the steps below to fix it:

    1. Please go to the Edit HTML of your blog.
    2. Click inside the box Edit HTML.
    3. Then do or tap on the keyboard SHIFT + CTRL + R
    4. Enter the http: // in the box that appears at the top right corner of the edit box HTML, and then press enter.
    5. Then enter the code // in the box that appears next, press enter.
    6. Finished, please save edit HTML.

    The above is to change once all the antecedents URL http: // to only // to be accessed with HTTP or HTTPS.

    You all done!, and goodluck.

    Share this post:

    About author
    Lorem ipsum dolor sit amet
    0 Comments

    Please read our Comment Policy before commenting. ??

    Notification