Skip to main content

Rejecting Undesired Requests

You can use BrowserQL to block undesired content, resources and requests.

mutation PDF {
reject(type: [image, stylesheet]) {
enabled
time
}

goto(url: "https://browserless.io/") {
status
}

pdf(displayHeaderFooter: true, printBackground: false, format: a0) {
base64
}
}
BQL Schemas

For more details on BQL mutations, refer to the BrowserQL Schema reference pages.

Rest API

Generating PDFs and Taking Screenshots can also be done with Browserless Rest API.