X
Thinta lapha ukuze uye kuveshini yamakhalekhukhwini kusayithi.

Isithangami Sabeseki

Can I block the domain of an advertiser?

Kuphostiwe

I have been experimenting with blocking elements with adblockers and its remarkable how you can shape the page to what you want, especially eliminating space wasting toolbars that don't disappear when you scroll down or appear when you scroll up moving everything with a vertical jerk. But sometimes I'm a little too aggressive and remove too much rendering the page unusable. Some display the elements you have removed but others don't. This got me thinking about using F12 in Firefox to control what elements I want. Is this a better way?

And is there a way of blocking an advertiser system wide on Firefox? There's a few advertisers that are just painful and just blanket their ads everywhere. It would be great to block them on all websites. We're talking real parasites here!

I have been experimenting with blocking elements with adblockers and its remarkable how you can shape the page to what you want, especially eliminating space wasting toolbars that don't disappear when you scroll down or appear when you scroll up moving everything with a vertical jerk. But sometimes I'm a little too aggressive and remove too much rendering the page unusable. Some display the elements you have removed but others don't. This got me thinking about using F12 in Firefox to control what elements I want. Is this a better way? And is there a way of blocking an advertiser system wide on Firefox? There's a few advertisers that are just painful and just blanket their ads everywhere. It would be great to block them on all websites. We're talking real parasites here!
Isicaphuno

Eminye Imininingwane Yohlelo

Fakela amapulagi

  • Shockwave Flash 32.0 r0

Isisebenziso

  • I-ejenti Engumsebenzisi: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0

Eminye Imininingwane

Wesley Branton
  • Top 10 Contributor
615 izisombululo 5130 izimpendulo
Kuphostiwe

Impendulo Ewusizo

You can block specific domains using the WebsiteFilter policy like this:

{
  "policies": {
    "WebsiteFilter": {
      "Block": ["*://*.ihatetheseguys.net/*"]
    }
  }
}

I outlined this in a lot more detail on this previous thread. You can also refer to Customizing Firefox Using policies.json or Customizing Firefox Using Group Policy (Windows) for more general steps.

Alternatively, you may want to find a website blocking add-on instead.

Hope this helps.

You can block specific domains using the <code>WebsiteFilter</code> policy like this: <pre><nowiki>{ "policies": { "WebsiteFilter": { "Block": ["*://*.ihatetheseguys.net/*"] } } }</nowiki></pre> I outlined this in a lot more detail on [https://support.mozilla.org/en-US/questions/1260799 this previous thread]. You can also refer to [[Customizing Firefox Using policies.json]] or [[Customizing Firefox Using Group Policy (Windows)]] for more general steps. Alternatively, you may want to [https://addons.mozilla.org/firefox/ find a website blocking add-on] instead. Hope this helps.
Ingabe lokhu kube usizo kuwena? 1
Isicaphuno

Umnikazi wombuzo

Hey Wesley, those sound like great solutions. It would be so much better to control things by the browser itself instead of relying on fickle extensions. Thank you very much.

Hey Wesley, those sound like great solutions. It would be so much better to control things by the browser itself instead of relying on fickle extensions. Thank you very much.
Ingabe lokhu kube usizo kuwena?
Isicaphuno
Wesley Branton
  • Top 10 Contributor
615 izisombululo 5130 izimpendulo
Kuphostiwe

It sounds like the WebsiteFilter policy is what you want then, since it's programmed into Firefox and doesn't require any extensions.

It sounds like the <code>WebsiteFilter</code> policy is what you want then, since it's programmed into Firefox and doesn't require any extensions.
Ingabe lokhu kube usizo kuwena?
Isicaphuno

Umnikazi wombuzo

Upon rereading this it appears that this is for typed in URL's. I need something that will prevent ads from specific URL's. Isn't that different? BTW, you mentioned this site:

https://github.com/mozilla/policy-templates/blob/master/README.md#websitefilter

and on this site it mentions

Software\Policies\Mozilla\Firefox\WebsiteFilters\Block\1 = "<all_urls>"

Software\Policies\Mozilla\Firefox\WebsiteFilters\Exceptions\1 = "http://example.org/*"

I could not find any folder called Policies on C drive on my updated Win7 build. Or is this for Win10?

Upon rereading this it appears that this is for typed in URL's. I need something that will prevent ads from specific URL's. Isn't that different? BTW, you mentioned this site: https://github.com/mozilla/policy-templates/blob/master/README.md#websitefilter and on this site it mentions Software\Policies\Mozilla\Firefox\WebsiteFilters\Block\1 = "<all_urls>" Software\Policies\Mozilla\Firefox\WebsiteFilters\Exceptions\1 = "http://example.org/*" I could not find any folder called Policies on C drive on my updated Win7 build. Or is this for Win10?
Ingabe lokhu kube usizo kuwena?
Isicaphuno
Wesley Branton
  • Top 10 Contributor
615 izisombululo 5130 izimpendulo
Kuphostiwe

This policy applies to any attempt to load the website, not just ones that you manually visit.

You are looking for the C:\Windows\PolicyDefinitions folder. If you have that on your computer, you can put these two ADMX files there.

If not, you will need to create a policies.json file and then use the JSON code to apply this blocker.

Hope this helps.

This policy applies to any attempt to load the website, not just ones that you manually visit. You are looking for the <code>C:\Windows\PolicyDefinitions</code> folder. If you have that on your computer, you can put [https://github.com/mozilla/policy-templates/tree/master/windows these two ADMX files] there. If not, you will need to [[Customizing Firefox Using policies.json|create a policies.json file]] and then use the JSON code to apply this blocker. Hope this helps.
Ingabe lokhu kube usizo kuwena?
Isicaphuno
Buza umbuzo

Kufanele ulogele ukungena ku-akhawunti yakho ukuze uphendule amaphosti. Uyacelwauqale umbuzo omusha, uma ungekabi nayo i-akhawunti namanje.