The Movable Type Knowledge Base

Excluding a Weblog From Search Results

Question

I have a weblog which I do not want to appear in public search results; how do I protect its entries?

Answer

You can use the ExcludeBlogs configuration directive in mt-config.cgi1 system to prevent search results from being returned from one or more weblogs.

If the setting already exists in the file, uncomment it2, and then indicate the weblog IDs3 you want to exclude from public search results, separated by commas (if the setting does not exist in your file, simply add it to the end of the file on its own line). For example, to exclude weblogs 1 and 2 from search results:

ExcludeBlog 1,2

While this setting will prevent results from the weblogs from being returned via seach forms you've added to your site, it does not prevent someone from actually changing the search URL parameters on their own and discovering results from these weblogs. To prevent that from happening, make sure you're also using the NoOverride configuration directive in your configuration file:

NoOverride IncludeBlogs,ExcludeBlogs

1 In versions prior to 3.2, the configuration file is named mt.cfg.

2 To uncomment a setting means to remove the # from the beginning of the line where it appears.

3 You can determine the ID of a weblog by looking at the URL shown in the address bar of your browser when you are logged into that weblog through Movable Type; look for the blog_id parameter in the URL.

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or questions. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Support.

Yahoo! Small Business web hosting services

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.