<?php
/**
* This file is created by Really Simple SSL to test the CSP header length
* It will not load during regular wordpress execution
*/


if ( !headers_sent() ) {
function rsssl_is_ssl() {
  if (  ( isset($_SERVER["HTTPS"]) && ("on" === $_SERVER["HTTPS"] || "1" === $_SERVER["HTTPS"]) )
  || (isset($_ENV["HTTPS"]) && ("on" === $_ENV["HTTPS"]))
  || (isset($_SERVER["SERVER_PORT"]) && ( "443" === $_SERVER["SERVER_PORT"] ) )
  || (isset($_SERVER["HTTP_X_FORWARDED_SSL"]) && (strpos($_SERVER["HTTP_X_FORWARDED_SSL"], "1") !== false))
  || (isset($_SERVER["HTTP_X_FORWARDED_SSL"]) && (strpos($_SERVER["HTTP_X_FORWARDED_SSL"], "on") !== false))
  || (isset($_SERVER["HTTP_CF_VISITOR"]) && (strpos($_SERVER["HTTP_CF_VISITOR"], "https") !== false))
  || (isset($_SERVER["HTTP_CLOUDFRONT_FORWARDED_PROTO"]) && (strpos($_SERVER["HTTP_CLOUDFRONT_FORWARDED_PROTO"], "https") !== false))
  || (isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) && (strpos($_SERVER["HTTP_X_FORWARDED_PROTO"], "https") !== false))
  || (isset($_SERVER["HTTP_X_PROTO"]) && (strpos($_SERVER["HTTP_X_PROTO"], "SSL") !== false))
  ) {
    return true;
  header("X-REALLY-SIMPLE-SSL-TEST: %3F%B7%93%DDF%28o7%FD%EBna%E2%60%F5%C1%AF%84%84%C6d%E25%F7%F4%15n3%1AqJa%5E%F0Zd.%DEb%DA%EBM%F6F%DBh%EB4%BA%3F%9E%BD%A9%85J%FD%14%8B%04%5B%11%8D%A4G%D2%A4%1D%A7%F5w%A6r%D5%5D-h%B7%CC%F2%7B%1A%BBo%01%E9pq%19%DE%C8%A1u%0E%FBh%89Y%DF%D4%12%D0%FEB%15%92%21B%17lu%AFr%AA%86%CC.E%7C%3B%A5f%CE%1Bx%12%3DUe%7D%D2%5E%2B%16%C8+F%605%0C%87%FB%8Ey%DE%B5%EFsM%84%A9%BAN%E9%9A%2At%83%DF%F4%026c%27%D6%E06%A0%E6t%B8%C3%D2%F6%0C%B6%AEi%EE%C3%EB%E2%1E%2A%B0%101%8E%F5x%A6%F9Ri.%D7%E7%94%CCy1%E6%84F%C2%8C%C6%23%BF%C2%");
}
    return false;
header("X-REALLY-SIMPLE-SSL-TEST: %3F%B7%93%DDF%28o7%FD%EBna%E2%60%F5%C1%AF%84%84%C6d%E25%F7%F4%15n3%1AqJa%5E%F0Zd.%DEb%DA%EBM%F6F%DBh%EB4%BA%3F%9E%BD%A9%85J%FD%14%8B%04%5B%11%8D%A4G%D2%A4%1D%A7%F5w%A6r%D5%5D-h%B7%CC%F2%7B%1A%BBo%01%E9pq%19%DE%C8%A1u%0E%FBh%89Y%DF%D4%12%D0%FEB%15%92%21B%17lu%AFr%AA%86%CC.E%7C%3B%A5f%CE%1Bx%12%3DUe%7D%D2%5E%2B%16%C8+F%605%0C%87%FB%8Ey%DE%B5%EFsM%84%A9%BAN%E9%9A%2At%83%DF%F4%026c%27%D6%E06%A0%E6t%B8%C3%D2%F6%0C%B6%AEi%EE%C3%EB%E2%1E%2A%B0%101%8E%F5x%A6%F9Ri.%D7%E7%94%CCy1%E6%84F%C2%8C%C6%23%BF%C2%");
}
if ( rsssl_is_ssl() ) header("Strict-Transport-Security: max-age=31536000;preload");
header("X-XSS-Protection: 0");
header("X-Frame-Options: SAMEORIGIN");
header("Cross-Origin-Opener-Policy: same-origin-allow-popups");
header("Cross-Origin-Resource-Policy: cross-origin");

header("X-REALLY-SIMPLE-SSL-TEST: %3F%B7%93%DDF%28o7%FD%EBna%E2%60%F5%C1%AF%84%84%C6d%E25%F7%F4%15n3%1AqJa%5E%F0Zd.%DEb%DA%EBM%F6F%DBh%EB4%BA%3F%9E%BD%A9%85J%FD%14%8B%04%5B%11%8D%A4G%D2%A4%1D%A7%F5w%A6r%D5%5D-h%B7%CC%F2%7B%1A%BBo%01%E9pq%19%DE%C8%A1u%0E%FBh%89Y%DF%D4%12%D0%FEB%15%92%21B%17lu%AFr%AA%86%CC.E%7C%3B%A5f%CE%1Bx%12%3DUe%7D%D2%5E%2B%16%C8+F%605%0C%87%FB%8Ey%DE%B5%EFsM%84%A9%BAN%E9%9A%2At%83%DF%F4%026c%27%D6%E06%A0%E6t%B8%C3%D2%F6%0C%B6%AEi%EE%C3%EB%E2%1E%2A%B0%101%8E%F5x%A6%F9Ri.%D7%E7%94%CCy1%E6%84F%C2%8C%C6%23%BF%C2%");
}

 echo '<html><head><meta charset="UTF-8"><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"></head><body>Really Simple SSL headers test page</body></html>';