[code language=”powershell”]User-agent: *
Disallow: /[/code]
[code language=”powershell”]
$host = http.getHostHeader();
$qs = http.getpath();
if (($host == “sysads.co.uk”) && ($qs =="/robots.txt")) {
if (resource.exists( “robots.txt”)) {
# robots.txt exists on ZXTM, return content of txt file to client
http.sendResponse( 200, “text/plain”, resource.get(“robots.txt”), “ZXTMServed: True”);
}
}
[/code]