setContentType(\service::CONTENT_TYPE_TEXT_PLAIN); $commonPatterns = "Disallow: /legacyservlets/ Disallow: /servlets/ Disallow: /s/ Disallow: /d/ Disallow: /modal-feedback Disallow: /modal-login Disallow: /modal-myaccount Disallow: /modal-signup Disallow: /modal-subscribe Disallow: /organization-received Disallow: /register Disallow: /resetpw Disallow: /verify "; $clonePatterns = "Disallow: /data/our-data-directory "; ob_start(); echo "User-Agent: *\n"; // We only allow indexing on PolicyMap proper and clones. Not on any other products (such as site licenses). // We need to keep the first conditional as-is, because we can't have dl0-4 showing up in searches! if($_SERVER['HTTP_HOST'] == "www.policymap.com") { echo $commonPatterns; } else if ($productProperty->getValue(\productProperty::VARIABLE_IS_CLONE)) { echo $commonPatterns; echo $clonePatterns; } else { ?> Disallow: / content = ob_get_contents(); ob_end_clean(); ?>