Can Disqus be loaded via HTTPS?
Yes, Disqus supports HTTPS. By default, however, Disqus is loaded via HTTP. Disqus can be loaded via HTTPS (HTTP with the SSL protocol) by simply changing the
http prefix to
//. This is known as a protocol-relative URL.
For example, the relevant line of code in the universal embed code would be changed to:
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
And likewise the relevant line in the universal comment count code would be changed to:
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
These changes can similarly be applied to any of our plugins.
Note: These changes may take up to 24 hours to take full effect.
Disqus still isn't loading via HTTPS
The most common reason Disqus will not load via HTTPS (after waiting 24 hours) is that Disqus is still being loaded via HTTP somewhere on your site. If you require Disqus to still load via HTTP sometimes, HTTPS can be manually forced by appending the
?https query parameter. Continuing the above example, this would look like:
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js?https';
Did you find this article helpful?