Rate Your Experience

How can I disable ads on a page?

Modified on: Sat, 20 Jan, 2024

Jump to: 

How to Disable Ads On a URL

Alternate Rule Types

The Layout Tester Tab

The Ad Tester Tab


This app allows you to disable ads for a page or a directory in the Ezoic system. It's found under the 'Ezoic ads' tab in your Ezoic dashboard. 

How to Disable Ads on a URL


First, go to 'Ezoic ads' > 'Ad Restrictions' > Page Rules:


image

 


Click the "+" (plus) icon.


You'll then be taken to this page where, using the drop-down menu, you can select a URL, Cookie, Meta Tag, Subdomain, or Query Parameter where you would like ads not to show:


image


Select the page rule option you would like to create. For example, if you want to exclude ads from your homepage, select URL.


Next, you will need to select the rule type from the drop-down below:


image

You only need to add the URL path after the domain name - that's everything after and including the first '/' in the URL. 


For example, to disable ads from the homepage, simply enter a backslash - like this: '/'


image



Then click 'Create Rule' and you're done! 


Alternative Rule Types


The app also gives you the option to disable by cookie, Meta tag, and subdomain, by clicking the drop-down menu here:  

image



To Exclude by Cookie - Select the option from the drop-down menu, and then enter the name and value of the cookie you want to disable ads for.


image




To Exclude by Meta Tag - Select the option from the drop-down menu, and then enter the name and content of the meta tag you want to disable ads for.


image




To Exclude by Subdomain -  Select the option from the drop-down menu, and then enter the name of the subdomain you want to disable ads for. 


image




To Exclude by Query Parameter - Select the option from the drop-down menu, and then enter the query parameter and the query value you want to disable ads for.

image



The Layout Tester Tab


For sites using the Layout Tester app, you also have the option to disable page ad locations. Individual ad locations can be disabled on a page by visiting the page in your browser and pressing Ctrl+Alt+E on your Keyboard. Click the Layout Tester tab to see the rules set up. 


The Ad Tester Tab


Here you can set up rules to disable ads only on Ad Tester pages (leaving them running on the layout tester): 

image


Want to Exclude all Ezoic apps from running on a page? 


Then you'll need to use the Excluded Pages app. Click here to learn more.



Loading ...