Documentation
  • Proxies
    • Quick Guide
    • Rotating Residential Proxies
      • Get Started
      • Making Requests
      • Location Settings
        • Country
        • State
        • City
        • ASN Targeting
        • Server Specific Entry Nodes
      • Session Control
      • Whitelisting IPs
      • Proxy Generator
  • Unlimited Residential Proxies
    • Get Started
    • Making Requests
    • Location Settings
      • Continent
    • Session Control
    • Whitelisting IPs
    • Proxy Generator
  • Static ISP Proxies
    • Location Choosing
    • Making Requests
    • Proxy Credential
    • Whitelisting IPs
  • Public API
  • General
    • Restricted Targets
    • Response Codes
  • Advanced Proxy Solution
    • Web Unblocker
      • Get Started
      • Making Requests
        • JavaScript Rendering
        • Geo-location
        • Session
        • Header
        • Cookie
        • Blocking Resource Loading
Powered by GitBook
On this page
  1. Advanced Proxy Solution
  2. Web Unblocker
  3. Making Requests

Blocking Resource Loading

If the target website has resources that you don't need, such as images, videos, etc., you can block them by setting the header X-py-Block-Resources. This can save you more waiting time and data usage.When selecting the rendering type for HTML, blocking resource loading may be a good option.

We currently support the following resource blocking:

  • Image

  • Media

  • Stylesheet

  • Script

  • WebSocket

  • Font

You can specify multiple block types separated by a [,].

Example:

To block Image and Script resources from the target website:

curl -x -k unblock.pyproxy.io:16500 -U "USERNAME-zone-unblock-region-US:PASSWORD" -H "X-Pyproxy-Render:html" -H "X-Pyproxy-Block-Resources:Image,Script"  "https://open.pyproxy.com"

PreviousCookie

Last updated 1 month ago