All Collections
SSL and your Mediavine Ads
SSL and your Mediavine Ads

What you need to do right after you switch

Rachel Johnson avatar
Written by Rachel Johnson
Updated over a week ago

What to do if you’ve recently enabled SSL

So you’ve recently switched over to SSL, eh? That’s great! And luckily, there are only a few things you’ll need to check to make sure you’re 100% good to go from an ad perspective.

1. Add the “block-all-mixed-content” Content Security Policy to your site

 Once you enable SSL, we strongly recommend having the Content Security Policy (CSP)  “block-all-mixed-content” response header implemented to ensure only secure ads are loaded on your site. If your site doesn't have HTTPS/SSL, then you do NOT want to have this CSP applied, as it could remove images, styles, and scripts.

For WordPress sites, 9/10 times you just need to enable the “Block Insecure Assets” box in the Mediavine Control Panel to get this CSP directive on your site. Just be sure to email us at after enabling this setting so we can double check that you’re all squared away!

For non-WordPress sites, implementing the CSP involves inserting a small snippet of code in your site’s header. Full instructions on how to do this can be found in this help article, but please feel free to email us if you’d like our assistance.

2. Check your script wrapper

It’s always smart to make sure the most recent script tag is installed on your site after making any changes, including moving to SSL.  

For WordPress users, as long as you’re running the latest version of the Mediavine Control Panel Plugin, you have the most recent script wrapper on your site. Just make sure that your Site ID is in the “Mediavine Site Id” field and the “Include Script Wrapper” box is enabled in the plugin settings.

Non-WordPress sites can check if they have the most recent script wrapper by comparing the script on their site to the script in their Mediavine dashboard settings under the Ad Setup tab.

And if you need to reinstall your script wrapper, you can use the following guides:

For WordPress:

 As always, if you need any help or have any questions, please shoot us an email at and we’ll be more than happy to assist!


Did this answer your question?