eniya etogo polya ukazan simvol "*", to zadannye v etoj zapisi prava dostupa rasprostranyayutsya na lyubyh poiskovyh robotov, zaprosivshih fajl /robots.txt
Disallow
Lyubaya zapis' (record) dolzhna sostoyat' hotya by iz odnoj stroki (line) User-Agent i odnoj - Disallow
Esli fajl /robots.txt pust, ili ne otvechaet zadannomu formatu i semantike, ili ego ne sushchestvuet, lyuboj poiskovyj robot budet rabotat' po svoemu algoritmu.
Primer 1:
# robots.txt for http://www.site.com User-Agent: * Disallow: /cyberworld/map/ # this is an infinite virtual URL space Disallow: /tmp/ # these will soon disappear
V primere 1 zakryvaetsya ot indeksacii soderzhimoe direktorij /cyberworld/map/ i /tmp/.
Primer 2:
# robots.txt for http://www.site.com User-Agent: * Disallow: /cyberworld/map/ # this is an infinite virtual URL space # Cybermapper knows where to go User-Agent: cybermapper Disallow:
V primere 2 zakryvaetsya ot indeksacii soderzhimoe direktorii /cyberworld/map/, odnako poiskovomu robotu cybermapper vse razresheno.
Primer 3:
# robots.txt for http://www.site.com User-Agent: * Disallow: /
V primere 3 lyubomu poiskovomu robotu zapreshchaetsya indeksirovat' server.
V nastoyashchee vremya standart neskol'ko izmenilsya, naprimer, mozhno zapisyvat' v stroke User-Agent neskol'ko imen robotov, razdelennyh probelami ili tabulyatorami.
Martijn Koster, m.koster@webcrawler.com
Perevod: Andrej Alikberov, info@citmgu.ru