Plugin info

Total downloads: 1,256
Active installs: 0
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 9/28/2009 (5936 days ago)
Added to WordPress: 9/28/2009 (16 years old)
Minimum WordPress version: 2.7
Tested up to WordPress version: 2.8
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 5936 days ago

20/100

Is Private Page Forbidden abandoned?

Possibly abandoned (last update 5936 days ago).

Compatibility

Requires WordPress: 2.7
Tested up to: 2.8
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Custom Error Pages
Rating 5.0/5 (12 reviews)Active installs 700
F4 Error Pages
Rating 0.0/5 (0 reviews)Active installs 200
Site Protection
Rating 5.0/5 (1 reviews)Active installs 10

Description

This plugin is developed at Shepherd Interactive
for the benefit of the community. No support is available. Please post any questions to the support forum.

Instead of serving a 404 Not Found error with the 404.php template, send a 403 Forbidden error and set $wp_query->is_403 and load 403.php if it exists.

Provides a filter forbidden_redirect which if results in a non-empty filtered value will result in the user being redirected if attempting to visit a forbidden page; the default value is "" (no redirect).

Useful with a filter which selectively prevents a private post from being forbidden, so that the page will not show up in the navigation and won’t be included in XML Sitemaps, for example.

function my_filter_private_posts($posts){     if(is_singular() && $posts[0]->post_status == 'private'        && #Now optionally allow/disallow based on user session:        in_array($_SERVER['REQUEST_URI'], (array)@$_SESSION['allowed_private_uris']))     ){         header('Cache-Control: private'); #Prevent proxies from caching this private page         $posts[0]->post_status = 'publish';     }     return $posts; } add_filter('posts_results', 'my_filter_private_posts');

Installation

No installation instructions available

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

2009-09-28: 0.2

  • Initial release