<html>

  <head>

    <title>Search Blocked</title>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    <meta http-equiv="pragma" content="no-cache">

    <meta name="viewport" content="initial-scale=1.0">

    <style>

      #content {

      border:3px solid#aaa;

      background-color:#fff;

      margin:1.5em;

      padding:1.5em;

      font-family:Tahoma,Helvetica,Arial,sans-serif;

      font-size:1em;

      }

      h1 {

      font-size:1.3em;

      font-weight:bold;

      color:#196390;

      }

      b {

      font-weight:normal;

      color:#196390;

      }

    </style>

  </head>

  <body bgcolor="#e7e8e9">

    <div id="content">

      <h1>Search Blocked</h1>

      <p>

        <b>User:</b> 

        <user/>

      </p>

      <p>Your search results have been blocked because your search settings are not in accordance with company policy.  In order to continue, please update your search settings so that Safe Search is set to the strictest setting. If you are currently logged into your account, please also lock Safe Search and try your search again.</p>

      <p>

        For more information, please refer to: 

        <a href="<ssurl/>">

          <ssurl/>

        </a>

      </p>

      <p id="java_off"> Please enable JavaScript in your browser.<br></p>

      <p><b>Please contact your system administrator if you believe this message is in error.</b></p>

    </div>

  </body>

  <script>

    // Grab the URL that's in the browser.

    var s_u = location.href;

    

    //bing

    

    // Matches the forward slashes in the beginning, anything, then ".bing." then anything followed by a non greedy slash. Hopefully the first forward slash.

    

    var b_a = /^.*\/\/(.+\.bing\..+?)\//.exec(s_u);

    

    if (b_a) {

        s_u = s_u + "&adlt=strict";

        window.location.replace(s_u);

        document.getElementById("java_off").innerHTML = 'You are being redirected to a safer search!';

    }

    

    //google

    

    // Matches the forward slashes in the beginning, anything, then ".google." then anything followed by a non greedy slash. Hopefully the first forward slash.

    

    var g_a = /^.*\/\/(.+\.google\..+?)\//.exec(s_u);

    

    if (g_a) {

        s_u = s_u.replace(/&safe=off/ig,"");

        s_u = s_u + "&safe=active";

        window.location.replace(s_u);

        document.getElementById("java_off").innerHTML = 'You are being redirected to a safer search!';

    }

    

    //yahoo

    

    // Matches the forward slashes in the beginning, anything, then ".yahoo."" then anything followed by a non greedy slash. Hopefully the first forward slash.

    

    var y_a = /^.*\/\/(.+\.yahoo\..+?)\//.exec(s_u);

    

    if (y_a) {

        s_u = s_u.replace(/&vm=p/ig,"");

        s_u = s_u + "&vm=r";

        window.location.replace(s_u);

        document.getElementById("java_off").innerHTML = 'You are being redirected to a safer search!';

    }

    

    document.getElementById("java_off").innerHTML = ' ';

  </script>

</html>