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

We welcome all questions, feedback and bug reports. If you're having an issue, we usually need the following information:

  • A brief description of the issue
  • Link to any page where you saw the issue
  • Screenshots that illustrate the problem - How do I take a screenshot?