/* robots.txt support for Helma/Antville This is a simple hack to allow certain blogs to be protected from vor beeing visited by spiders and thus included in search engines listings. This is archived by a robots.txt file. Weblogs which are online but do not ping weblogs.com are included into the robots.txt file. This only works out if antville is mounted at the top of the URI hierachy on your helma server. Installation: Just drop this acript as 'robots.txt.hac' into apps/antville/root and check http://your.server.do.main/robots.txt See also http://blogs.23.nu/c0re/stories/213/ --md@hudora.de 2003 */ res.contentType = "text/plain"; var param = new Object(); param = new Object(); res.write("User-agent: *\n") var collection = root.public; var size = collection.size(); var idx = 0 var buf = new java.lang.StringBuffer(); while (idx < size) { var w = collection.get(idx++); if (!w.blocked && w.online) { if (!w.enableping) { res.write("Disallow: /" + w.alias + "/\n"); } } }