Static assets scraping
In the context of Zoning and Session Replay, Contentsquare fetches static assets on your website.
To allow Contentsquare fetching these assets, select one of the following options:
Allowing IP Addresses
Section titled Allowing IP AddressesAllow ports 80
(HTTP) and 443
(HTTPS) and the following IP addresses to prevent your proxy, firewall, or server configuration from blocking the scraper.
52.18.162.15720.75.90.236100.24.76.9034.192.98.14820.67.250.10954.247.44.19652.51.9.1235.72.153.3835.73.99.4134.192.240.128
Using a custom static header
Section titled Using a custom static headerWhen selecting this option, Contentsquare adds a custom header to the project settings.
{ "headers": { "my-new-header-key": "myKeyValue" }}
You can then validate that scraper requests contain the specific header and value.
receivedHeaderExample = 'myKeyValue';
const CONTENTSQUARE_CUSTOM_HEADER = 'myKeyValue';if (receivedHeaderExample === CONTENTSQUARE_CUSTOM_HEADER) { //}