Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Discussion on how to block ads in headless browser Playwright

Let's talk about what your best solution would be.

Comments

  • FAT32FAT32 Administrator, Deal Compiler Extraordinaire

    You can install custom Chrome Extension using --load-extension= with uBlock Origin or the like.

    https://playwright.dev/docs/chrome-extensions

  • Shouldn't setting the nameservers to some ad-blocking public dns servers like adguard dns or something else work with playwright.

  • bdlbdl Member

    To see (ads) or not to see (ads)?

  • In a larger scale setup I'd go with a https proxy like squid and filter there using the sources of ublock origin and friends. That way you have fine grained control over the transport while keeping the config centralized. This can be scaled up to do additional testing with different GeoIP endpoints as that might influence the target test. Additionally you could configure specific nameservers at the proxy that also does ad-blocking and make sure lookups are performed remotely. It's important to keep track of the ad block sources as they influence the tests once the sources change. I'd recommend going with a self hosted setup to have all variables in control.

  • What's the advantage of this Playwright browser?

Sign In or Register to comment.