Генератор robots.txt (html+js)
- <script language="JavaScript"><!--
- function sb1() {
- document.form1.formula.value = document.form1.formula.value + '\nUser-agent : ' + document.form1.robots.value;
- }
- function sb2() {
- document.form1.formula.value = document.form1.formula.value + '\nDisallow : ' + document.form1.disal.value;
- }
- function sb3() {
- document.form1.formula.value = document.form1.formula.value + '\n# ';
- }
- function sb4() {
- document.form1.formula.value = document.form1.formula.value + '\n';
- }
- // --></script>
- <form action="robotsgen.html" name="form1">
- User-Agent:
- <br><select name="robots" class="button" onchange="sb1()">
- <option value=""></option>
- <option value="*">Все боты</option>
- <option value="Yandex">Яndex</option>
- <option value="Googlebot">Google</option>
- <option value="Slurp">MSN</option>
- <option value="Scooter">AltaVista</option>
- </select><br>Disallow (запрет индексирования):<br>
- <td><select name="disal" class="button" onchange="sb2()">
- <option value=""></option>
- <option value="">индексировать всё</option>
- <option value="/">запретить всё</option>
- <option value="/">/</option>
- <option value="/..">/..</option>
- <option value="/cgi-bin">/cgi-bin</option>
- <option value="/phpincludes">/phpincludes</option>
- <option value="/css">/css</option>
- <option value="/js">/js</option>
- <option value="/images">/images</option>
- <option value="/mail">/mail</option>
- </select>
- <br>
- <input value="закомментировать" name="com" onclick="sb3()" class="button" type="button"><br>
- <input value="пробел" name="n" onclick="sb4()" class="button" type="button">
- <br>
- <b>Результат</b><br>
- <input name="button" onclick="document.form1.formula.focus();document.form1.formula.select()" value="выделить" type="button"><br>
- <textarea cols="20" rows="7" name="formula" class="inp"></textarea>
Полезная вещь для wеb мастера.