JavaScript Restrictor
Browser extension that improves privacy and security
|
This file contains Firefox-specific functions for Network Boundary Shield. More...
Functions | |
function async | beforeSendHeadersListener (requestDetail) |
This file contains Firefox-specific functions for Network Boundary Shield.
This file contains Firefox specific functions for Network Boundary Shield.
This file contains webRequest API listeners. These listeners handle HTTP requests in the "before send headers" phase and handle messages (on message event).
NBS for Firefox uses the DNS web extension API to resolve domain names. As the domain names are cached and needs to be resolved without NBS, the performance impact should be negligible. The DNS API is not used for proxied requests to prevent DNS leaks of resolutions that would be initiated by the DNS proxy. See https://pagure.io/JShelter/webextension/issue/41 for more details.
function async beforeSendHeadersListener | ( | requestDetail | ) |
The event listener, hooked up to webRequest onBeforeSendHeaders event. Receives detail of HTTP request in requestDetail. Catches the request, analyzes its origin and target URLs and blocks it/permits it based on their IP adresses. Requests coming from public IP ranges targeting the private IPs are blocked by default. Others are permitted by default.
requestDetail | Details of HTTP request. |