Hi, is it possible to monitor HTTP Headers in PRTG? For example i would like to monitor if in the HTTP response the header:

content-encoding: gzip

is included.

Or if a specific value is set in the "content-security-policy" Header.

Thank you + BR


Article Comments

Hi there,

Unfortunately, there is no native sensor to check this. However in PowerShell you can check for certain headers and their value:

$site = Invoke-WebRequest -Uri "https://cspvalidator.org/" -UseBasicParsing
$site.Headers["content-security-policy"]

Maybe you can use this snippet to build a script that suits your needs:
https://helpdesk.paessler.com/en/support/solutions/articles/76000041700-guide-for-powershell-based-custom-sensors

Best regards.


Nov, 2018 - Permalink