| Site Map | WizTools.org | jCraze Blog |
![]()
|
Escaping Search Engines!You can make search engines not index certain pages from your site. There are two ways of doing this. Both the methods may be used in complement to each other. The methods are:
Using META TagsTo the page which you don't want to index, add the following META tag: <meta name="robots" content="noindex, nofollow"> An brief explanation: noindex: The current page should not be indexed. The opposite of this value is "index". nofollow: The links in the current page should not be followed. The opposite of this value is "follow". Thus, if you do not want to index the current page, but want to index the links mentioned in the page, you have to give the following META tag: <meta name="robots" content="noindex, follow"> Using "robots.txt" FileYou can also place a plain ASCII file "robots.txt" in the root of your html directory to direct the search engines which pages/directories not to index. Since this technique requires one to place "robots.txt" in the root of the html directory, members of the free sub-folder hosting companies like Geocities will not be able to use this method. Thus this is not a valid "robots.txt" file: http://www.comp-name.com/user-name/robots.txt But this one is correct: http://www.comp-name.com/robots.txt Syntax of "robots.txt"The line after "#" is treated as comment (UNIX shell programmers might feel at home!). The keywords associated with this file are:
ExampleYou have the site http://comp-name.com. The following are the contents: http://comp-name.com/index.html Now you have to specify to the robots not to index the pages within the "admin" folder and the particular page "private.html". Your "robots.txt" file will look like: #Author: Your_Name #Last-Modified-Date: Date User-agent: * Disallow: /admin/ Disallow: /private.html Allow: /index.html #Optional To Conclude...Both these techniques have been standardized. Most popular search engines follow these standards. But there may be search engines that do not follow these standards, so be careful ... The best way you can protect your private files is to place them within protected (SSL or non-SSL) folders. - Subhash. |
Sign Guestbook
|
Who is Subhash?
The contents of this site are copyright© 2000-2008, indiWiz.com. All Rights Reserved.