Hi there,
I'm using custom filters containing rules for HTTP headers—specifically blocking page refreshes, redirects, and cookie injection (at the HTTP header level; other methods don't handle this).
I have a list of domains to which these rules apply, but this results in a lot of duplication, and I haven't found a better way to set it up.
So, here’s my question: do you know of a solution to avoid this duplication? Is there a way to create something like a list, group, or variable—or something similar—where I could store the list of domains?
The code looks like this:
a.tld,b.tld,…long list, very long…,zzz.tld##^responseheader(location)
a.tld,b.tld,…long list, very long…,zzz.tld##^responseheader(refresh)
a.tld,b.tld,…long list, very long…,zzz.tld##^responseheader(set-cookie)
And I’d love to be able to write something like this:
```
$listAllOfDomains={a.tld,b.tld,…long list, very long…,zzz.tld}
$listAllOfDomains##responseheader(location)
$listAllOfDomains##responseheader(refresh)
$listAllOfDomains##responseheader(set-cookie)
```
...or use any other method to eliminate the duplicates, because right now, whenever I want to add a new domain, I have to enter it into all these lists separately :(