---
title: SSL and your Mediavine Ads
description: What you need to do right after you enable SSL
---

[Skip to content](https://help.mediavine.com/ssl-and-your-mediavine-ads#main-content)

English

Show submenu for translations

[![mediavine-horiz-white-pn-RGB-(r)-spacing](https://help.mediavine.com/hs-fs/hubfs/Logos/Mediavine%20Logos/mediavine-horiz-white-pn-RGB-(r)-spacing.png?width=385&height=100&name=mediavine-horiz-white-pn-RGB-(r)-spacing.png)](https://www.mediavine.com/)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Go to mediavine.com](https://www.mediavine.com/)

[Go to mediavine.com](https://www.mediavine.com/)

 Advice and answers from Mediavine!

- There are no suggestions because the search field is empty.

1. [Help Center](https://help.mediavine.com/?hsLang=en)
2. [Advanced](https://help.mediavine.com/advanced?hsLang=en)
3. [SSL / HTTPS](https://help.mediavine.com/advanced?hsLang=en#ssl-https)

# SSL and your Mediavine Ads

## What you need to do right after you enable 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.

[![](https://help.mediavine.com/hubfs/Knowledge%20Base%20Import/mediavine-2d8c00c7ee73.intercom-attachments-7.comio193453527f8aca6b04e67aa3ea45c801cjpeqo607ZJ2o9qEod8AIziwZ4z753jfMDjnMW4d98m-u29tX2MnlYMzGzRQ1-1.png)](https://mediavine-2d8c00c7ee73.intercom-attachments-7.com/i/o/193453527/f8aca6b04e67aa3ea45c801c/jpeqo607ZJ2o9qEod8AIziwZ4z753jfMDjnMW4d98m-u29tX2MnlYMzGzRQ1DR4u4Issp6haE5nXjnoHOo13JYLPjNkeNmiOwgWb-0RSrYwd7fsT41R4woEiF4sOb0aMfiv-sgvY?expires=1726000200&signature=b90011158a11231ca3a5381fc235c2321922d40e795daf6d054af106db668799&req=dSkkEsx9mINYFb4f3HP0gGuUYGkzobtgIYL88g%2BL8EavD5Nsw1Qt4C2mk7bw%0AEdvyytmtmc7pwVGKhg%3D%3D%0A)

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](https://help.mediavine.com/force-all-ads-secure-with-a-content-security-policy?hsLang=en), 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.

![](https://help.mediavine.com/hs-fs/hubfs/Screenshot%202025-01-14%20at%2012-41-21%E2%80%AFPM-png.png?width=688&height=240&name=Screenshot%202025-01-14%20at%2012-41-21%E2%80%AFPM-png.png)

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.

![](https://help.mediavine.com/hs-fs/hubfs/Screenshot%202025-01-14%20at%2012-42-00%E2%80%AFPM-png.png?width=688&height=191&name=Screenshot%202025-01-14%20at%2012-42-00%E2%80%AFPM-png.png)

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

For WordPress: [Install the script with the Mediavine control panel (preferable)](https://help.mediavine.com/installing-mediavine-ads-using-mediavine-control-panel-plugin-for-wordpress?hsLang=en)

For Blogger: [Installing Mediavine ads in Blogger](https://help.mediavine.com/inserting-the-mediavine-script-wrapper-in-blogger?hsLang=en)

For Squarespace: [Installing Mediavine ads in Squarespace](https://help.mediavine.com/squarespace-site-mediavine-ad-installation?hsLang=en)

 As always, if you need any help or have any questions, please shoot us an email at [publishers@mediavine.com](mailto:publishers@mediavine.com) and we’ll be more than happy to assist!

- [Joining Mediavine Ad Management](https://help.mediavine.com/joining-mediavine-ad-management?hsLang=en#main-content)

    - [FAQ](https://help.mediavine.com/joining-mediavine-ad-management?hsLang=en#faq)
- [Launching your Mediavine Ads](https://help.mediavine.com/launching-your-mediavine-ads?hsLang=en#main-content)

    - [Mediavine Control Panel Wordpress Plugin](https://help.mediavine.com/launching-your-mediavine-ads?hsLang=en#mediavine-control-panel-wordpress-plugin)
    - [Installing the Mediavine Script on Non-Wordpress platforms](https://help.mediavine.com/launching-your-mediavine-ads?hsLang=en#installing-the-mediavine-script-on-non-wordpress-platforms)
- [Mediavine Publisher FAQ](https://help.mediavine.com/mediavine-publisher-faq?hsLang=en#main-content)

    - [Getting Started](https://help.mediavine.com/mediavine-publisher-faq?hsLang=en#getting-started)
    - [Site Sales](https://help.mediavine.com/mediavine-publisher-faq?hsLang=en#site-sales)
- [Payment Info](https://help.mediavine.com/payment-info?hsLang=en)
- [Dashboard FAQ](https://help.mediavine.com/dashboard-faq?hsLang=en#main-content)

    - [Getting Started](https://help.mediavine.com/dashboard-faq?hsLang=en#getting-started)
    - [Settings](https://help.mediavine.com/dashboard-faq?hsLang=en#settings)
    - [FAQ](https://help.mediavine.com/dashboard-faq?hsLang=en#faq)
    - [Troubleshooting](https://help.mediavine.com/dashboard-faq?hsLang=en#troubleshooting)
- [Site Health Checks](https://help.mediavine.com/site-health-checks?hsLang=en)
- [Standard Ad Units](https://help.mediavine.com/standard-ad-units?hsLang=en#main-content)

    - [Mediavine Ad Units](https://help.mediavine.com/standard-ad-units?hsLang=en#mediavine-ad-units)
    - [Ad Functionality](https://help.mediavine.com/standard-ad-units?hsLang=en#ad-functionality)
    - [Customizing your ad experience](https://help.mediavine.com/standard-ad-units?hsLang=en#customizing-your-ad-experience)
    - [AMP Ads](https://help.mediavine.com/standard-ad-units?hsLang=en#amp-ads)
    - [Troubleshooting](https://help.mediavine.com/standard-ad-units?hsLang=en#troubleshooting)
- [Site Specific Ad Units](https://help.mediavine.com/site-specific-ad-units?hsLang=en#main-content)

    - [Recipe Ads](https://help.mediavine.com/site-specific-ad-units?hsLang=en#recipe-ads)
    - [Interstitials](https://help.mediavine.com/site-specific-ad-units?hsLang=en#interstitials)
    - [Chicory](https://help.mediavine.com/site-specific-ad-units?hsLang=en#chicory)
    - [Sidebar Alternative](https://help.mediavine.com/site-specific-ad-units?hsLang=en#sidebar-alternative)
    - [Leaderboard](https://help.mediavine.com/site-specific-ad-units?hsLang=en#leaderboard)
- [Video](https://help.mediavine.com/video?hsLang=en#main-content)

    - [Mediavine Universal Player](https://help.mediavine.com/video?hsLang=en#mediavine-universal-player)
    - [Getting Started With Video](https://help.mediavine.com/video?hsLang=en#getting-started-with-video)
    - [Video Features](https://help.mediavine.com/video?hsLang=en#video-features)
    - [Mediavine Video + YouTube](https://help.mediavine.com/video?hsLang=en#mediavine-video-youtube)
    - [Closed Captions](https://help.mediavine.com/video?hsLang=en#closed-captions)
    - [Video Sitemaps](https://help.mediavine.com/video?hsLang=en#video-sitemaps)
    - [Playlists](https://help.mediavine.com/video?hsLang=en#playlists)
- [Optimize Your Ad Performance](https://help.mediavine.com/optimize-your-ad-performance?hsLang=en#main-content)

    - [Using Page-Level Data to Maximize Performance](https://help.mediavine.com/optimize-your-ad-performance?hsLang=en#using-page-level-data-to-maximize-performance)
    - [Tips to Maximize Ad Performance and RPM](https://help.mediavine.com/optimize-your-ad-performance?hsLang=en#tips-to-maximize-ad-performance-and-rpm)
    - [Sweet Land of Money Series](https://help.mediavine.com/optimize-your-ad-performance?hsLang=en#sweet-land-of-money-series)
- [Privacy](https://help.mediavine.com/privacy?hsLang=en#main-content)

    - [Privacy Policy](https://help.mediavine.com/privacy?hsLang=en#privacy-policy)
    - [State Privacy](https://help.mediavine.com/privacy?hsLang=en#state-privacy)
    - [GDPR](https://help.mediavine.com/privacy?hsLang=en#gdpr)
    - [LGPD Lei Geral de Proteção de Dados Pessoais](https://help.mediavine.com/privacy?hsLang=en#lgpd-lei-geral-de-prote%C3%A7%C3%A3o-de-dados-pessoais)
    - [US State Privacy Laws](https://help.mediavine.com/privacy?hsLang=en#us-state-privacy-laws)
- [Ad Quality](https://help.mediavine.com/ad-quality?hsLang=en)
- [SEO Help](https://help.mediavine.com/seo-help?hsLang=en)
- [Site Speed](https://help.mediavine.com/site-speed?hsLang=en)
- [Grow](https://help.mediavine.com/grow?hsLang=en#main-content)

    - [Getting Started](https://help.mediavine.com/grow?hsLang=en#getting-started)
- [PubNation](https://help.mediavine.com/pubnation?hsLang=en#main-content)

    - [Getting Started](https://help.mediavine.com/pubnation?hsLang=en#getting-started)
    - [PubNation Applications and Onboarding](https://help.mediavine.com/pubnation?hsLang=en#pubnation-applications-and-onboarding)
    - [Understanding the Tech](https://help.mediavine.com/pubnation?hsLang=en#understanding-the-tech)
    - [PubNation Ads](https://help.mediavine.com/pubnation?hsLang=en#pubnation-ads)
- [Products](https://help.mediavine.com/products?hsLang=en#main-content)

    - [Mediavine Labs](https://help.mediavine.com/products?hsLang=en#mediavine-labs)
    - [Create](https://help.mediavine.com/products?hsLang=en#create)
- [Advanced](https://help.mediavine.com/advanced?hsLang=en#main-content)

    - [Google Analytics](https://help.mediavine.com/advanced?hsLang=en#google-analytics)
    - [SSL / HTTPS](https://help.mediavine.com/advanced?hsLang=en#ssl-https)
    - [Ads.txt Help!](https://help.mediavine.com/advanced?hsLang=en#ads-txt-help)
- [Conflicts](https://help.mediavine.com/conflicts?hsLang=en#main-content)

    - [Cloudflare](https://help.mediavine.com/conflicts?hsLang=en#cloudflare)
    - [WP Rocket](https://help.mediavine.com/conflicts?hsLang=en#wp-rocket)
    - [Layout Conflicts](https://help.mediavine.com/conflicts?hsLang=en#layout-conflicts)
- [Mediavine Direct](https://help.mediavine.com/mediavine-direct?hsLang=en)
- [Perks & Programs](https://help.mediavine.com/perks-programs?hsLang=en)
- [Navigating the New Dashboard](https://help.mediavine.com/navigating-the-new-dashboard?hsLang=en)

[![mediavine-horiz-black-RGB-2-1](https://help.mediavine.com/hs-fs/hubfs/Logos/Mediavine%20Logos/mediavine-horiz-black-RGB-2-1.png?width=138&height=30&name=mediavine-horiz-black-RGB-2-1.png "mediavine-horiz-black-RGB-2-1")](http://mediavine.com)

mediavine.com Help Center

Copyright © 2026, © Mediavine, Inc.⎪All Rights Reserved