Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

Is there a way to black a certain path on any website using a policies.json?

  • 1 réponse
  • 0 a ce problème
  • 6 vues
  • Dernière réponse par markwarner22

more options

I have a "policies.json" file set up and I am able to block certain websites on Firefox.

For example, mine is set up something like this:

{

 "policies": {
     "WebsiteFilter": {
         "Block": [
           "*://youtube.com/*",
           "*://www.youtube.com/*"
         ]
     }
 }

}

My question is can I block any website that has a certain path or keyword in the url?

I know that a few of the match patterns from https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns are:

https://*/path/

https://*/path

https://mozilla.org/a/b/c/

But I'm not quite sure how to set them up (such as the formatting in the .json file) and/or what exactly they block. For example, if I wanted to block any website with a "path" = "Giraffe", would it block websites such as "exampleforum .com/giraffe/"?

I have a "policies.json" file set up and I am able to block certain websites on Firefox. For example, mine is set up something like this: { "policies": { "WebsiteFilter": { "Block": [ "*://youtube.com/*", "*://www.youtube.com/*" ] } } } My question is can I block any website that has a certain path or keyword in the url? I know that a few of the match patterns from https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns are: https://*/path/ https://*/path https://mozilla.org/a/b/c/ But I'm not quite sure how to set them up (such as the formatting in the .json file) and/or what exactly they block. For example, if I wanted to block any website with a "path" = "Giraffe", would it block websites such as "exampleforum .com/giraffe/"?

Toutes les réponses (1)

more options

Why not by blocking software that does this already? Also if you have Windows OS you can set the hosts file to block specific sites as long as you set the Admin with password so users other then the Admin can change it.

Cela vous a-t-il été utile ?

Poser une question

Vous devez vous identifier avec votre compte pour répondre aux messages. Veuillez poser une nouvelle question, si vous n’avez pas encore de compte.