Can Disqus be loaded via HTTPS?

Note: This document applies only to Disqus installations before March 6, 2013. Starting on March 6, 2013, the universal code was updated to automatically load in either HTTP or 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.

Troubleshooting

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';
Ask the Community Contact us

Still need help? Discuss Disqus is our most active place for getting quick help, sharing feedback, and discussing issues with others – a knowledgeable and helpful support team and community are there right now. Our 101 post is the best place to get started.

Make sure to search our Knowledge Base first... your answer might be just a click away!