Scale Intelligence■ Docs
Docs / The model / ResourceFilter

ResourceFilter.

What a read may download and what it must not: resource types allowed and denied, size caps, address patterns, and whether to render

Figure 1ResourceFilterspecified
RESOURCEFILTERvalue at none scopeallow_types[enum:document|script|…denied winsdeny_types[enum:document|script|…max_bytes_per_resourcecountoptionalmax_bytes_totalcountoptionaladdress patternsallow_patterns[text]deny_patterns[text]static fetches the document alone; auto renders only when the static read looks thin, as CrawlKit's extractor does; rendered always uses the browserrenderenum:static|auto|rende…points at no other object
ResourceFilter is a value at none scope. The drawing shows its fields and the objects that they point at.
kind
value
scope
none
key
none
store
none
family
sources

Fields#

fieldtyperequirednote
allow_types[one of document | script | stylesheet | font | image | video | audio | media | xhr | websocket | other]yes
deny_types[one of document | script | stylesheet | font | image | video | audio | media | xhr | websocket | other]yesdenied wins
max_bytes_per_resourcecountno
max_bytes_totalcountno
allow_patterns[text]yesaddress patterns
deny_patterns[text]yes
renderone of static | auto | renderedyesstatic fetches the document alone; auto renders only when the static read looks thin, as CrawlKit’s extractor does; rendered always uses the browser

Routes that use it#

No route takes or returns ResourceFilter directly. The record holds it, and the objects that point at it reach it.