DOCUMENT:Q173966 07-JAN-2000 [iis] TITLE :How to Filter Certain Folders from Query Results PRODUCT :Internet Information Server PROD/VER:WINNT: 1.1 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Index Server version 1.1 ------------------------------------------------------------------------------- SUMMARY ======= Queries issued against Index Server may return pointers to information that you do not wish users to see, such as scripts or cgi-bin folders. MORE INFORMATION ================ To keep Index Server from returning queries to documents in certain folder, you can do one of the following: - If the folder is a virtual root you can tell Index Server not to index it. To do this, go the Index Server administration page, and select the View/Update Indexing of Virtual Roots button. Then clear the virtual root you do not wish to index. - If the folder is not a virtual root, you must add an entry to the CiRestriction in the .idq file. If you know the path to the folder you want to exclude from the result set, add the following CiRestriction to the .idq file: cirestriction=(%cirestriction%) and not #vpath \virtualroot\foldername. This will pass the cirestriction from the query form; however, it will not return any documents in the /virtualroot/subfolder directory. If copies of the folder exist in multiple locations, you can modify the query to the following: cirestriction=(%cirestriction%) and not #vpath *\foldername The leading * tells Index Server to look for this folder through out the web, not just in a specific location. NOTE: On Windows 2000 NTFS volumes, the attribute FILE_ATTRIBUTE_NOT_CONTENT_INDEXED can be set for directories and files, so that the direcotries and files are not indexed by the Windows 2000 Indexing Service. Additional query words: uncheck FPIIS _vti restrict exclude Results ====================================================================== Keywords : Technology : kbIdxServSearch kbAudDeveloper kbIdxServ110 Version : WINNT: 1.1 Hardware : ALPHA x86 Issue type : kbhowto ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2000.