cancel
Showing results for 
Search instead for 
Did you mean: 
thelok
Level 7

JSON External List Example

Jump to solution

Is there an example of what the format of the JSON data should be like for an external list?

For example:

{

  {

    "domain": "badsite.com",

    "category": 24

  },

  {

    "domain": "badsite2.com",

    "category": 25

  }

}

How would I in turn be able to use this in a rule?

URL.Domain is in list Extlists.StringList("domain", "", "")   ???

The documentation is not good at describing what those 3 parameters are for and I can't find any good examples at all.

0 Kudos
1 Solution

Accepted Solutions
cdienger
Level 7

Re: JSON External List Example

Jump to solution

An example would be:

["badsite1.com","badsite2.com"]

You could then use something like the following to block the sites:

Property: URL.Host

Operator: is in list

Criteria: JSON.AsStringList(ExtLists.JSON("","","")<externaljsonlist>)

Action: Block

0 Kudos
1 Reply
cdienger
Level 7

Re: JSON External List Example

Jump to solution

An example would be:

["badsite1.com","badsite2.com"]

You could then use something like the following to block the sites:

Property: URL.Host

Operator: is in list

Criteria: JSON.AsStringList(ExtLists.JSON("","","")<externaljsonlist>)

Action: Block

0 Kudos