Omit Passworded Posts From Search

Omit Passworded Posts From Search

Scott Reilly

NOTE: This plugin is no longer necessary as of WordPress 2.8 as this functionality is now built-in.

Prevent passworded posts from being included in site search results.

By default, WordPress’s built-in search feature searches the contents of passworded posts. If the content of a passworded post matches the search criteria, WordPress will include that post in the listing of search results. While it is true that the post contents will not be displayed to the visitor (unless they know and have entered the password for the post), the fact that the otherwise protected post appeared in the search results allows for the visitor to search-bomb your site in an effort to deduce some of the content of the password-protected post.

This plugin prevents posts that have a password from being included in any search performed on the site. Of course, external search (as done from Google) would never include the passworded post contents since that content is not available to external search engines.

This plugin does not constrain the search capabilities from within the WordPress admin.

  1. Unzip omit-passworded-posts-from-search.zip inside the /wp-content/plugins/ directory for your site
  2. Activate the plugin through the ‘Plugins’ admin menu in WordPress

Reviews

0 out of 5 stars

  • Version: 1.0.1
  • Last updated: 15 years ago
  • Active installations: 0
  • WordPress version: 2.5
  • Tested up to: 2.7.1
  • PHP version: false