Network & Downloads

Override Referrer

Set request Referrer header.

Set request Referrer header.

Sets the browsers Referer header behavior for network requests based on the provided URL. If a referrer URL is provided, it configures browser-specific rules to override outgoing request headers with that value; if not, it removes the Referer header entirely.

Examples

GPAL Fluent: High-level fluent C# API

//Browser setup and settings before the first GoTo or Get.

browser.WithUseReferrer(string referrer);

MagicHelper: MagicHelper utility library

GPAL.MagicHelper.OverrideReferrer(string url);

Puppeteer Client: Puppeteer-style C# client

browser.PuppeteerClient.OverrideReferrer(string referrer).Execute();

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.OverrideReferrer(string url, string sessionId);

REST Client: Direct REST/HTTP client

GPAL.OttoMagicClient.WithEndpoint(ApiEndpoint.OverrideReferrer).WithUrl(string url).Execute();