mirror of
https://github.com/RGBCube/serenity
synced 2025-10-28 22:12:34 +00:00
This patch adds a global (per-process) filter list to LibWeb that is
used to filter all outgoing resource load requests.
Basically we check the URL against a list of filter patterns and if
it's a match for any one of them, we immediately fail the load.
The filter list is a simple text file:
~/.config/BrowserContentFilters.txt
It's one filter per line and they are simple glob filters for now,
with implicit asterisks (*) at the start and end of the line.
|
||
|---|---|---|
| .. | ||
| ContentFilter.cpp | ||
| ContentFilter.h | ||
| FrameLoader.cpp | ||
| FrameLoader.h | ||
| ImageLoader.cpp | ||
| ImageLoader.h | ||
| ImageResource.cpp | ||
| ImageResource.h | ||
| LoadRequest.h | ||
| Resource.cpp | ||
| Resource.h | ||
| ResourceLoader.cpp | ||
| ResourceLoader.h | ||