{"id":10898,"date":"2026-05-22T12:29:58","date_gmt":"2026-05-22T04:29:58","guid":{"rendered":"https:\/\/aeosub.com\/pathguard-redirects\/"},"modified":"2026-05-22T12:29:58","modified_gmt":"2026-05-22T04:29:58","slug":"pathguard-redirects","status":"publish","type":"post","link":"https:\/\/aeosub.com\/zh\/pathguard-redirects\/","title":{"rendered":"PathGuard Redirects"},"content":{"rendered":"<div class=\"post-img\" style=\"margin-bottom: 25px\"><img decoding=\"async\" src=\"https:\/\/ps.w.org\/pathguard-redirects\/assets\/banner-772x250.png?rev=3543059\" alt=\"PathGuard Redirects\" style=\"width: 100%;height: auto;border-radius: 12px\"><\/div>\n<div class=\"plugin-info-card\" style=\"border: 1px solid #e2e8f0;border-radius: 10px;overflow: hidden;margin-bottom: 30px;font-family: -apple-system, system-ui, sans-serif;background: #fff\">\n<table style=\"width: 100%;border-collapse: collapse;font-size: 14px\">\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 15px 20px;text-align: left;width: 35%;color: #4a5568;background: #fcfcfc\"><img decoding=\"async\" src=\"https:\/\/s.w.org\/plugins\/geopattern-icon\/pathguard-redirects_62b6d8.svg\" style=\"width: 40px;height: 40px;border-radius: 6px;margin-right: 12px;vertical-align: middle\"> Developer<\/th>\n<td style=\"padding: 15px 20px;font-weight: 500\"><a href=\"https:\/\/profiles.wordpress.org\/emily50\/\" target=\"_blank\" rel=\"noopener\">MD. Samrat Hossen<\/a><\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Version<\/th>\n<td style=\"padding: 12px 20px\">v1.0.0<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Active Installs<\/th>\n<td style=\"padding: 12px 20px\">0 +<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Requires \/ Tested<\/th>\n<td style=\"padding: 12px 20px\">5.8 \/ 6.9.4<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Last Updated<\/th>\n<td style=\"padding: 12px 20px\">2026-05-22 3:49am GMT<\/td>\n<\/tr>\n<tr>\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Official Link<\/th>\n<td style=\"padding: 12px 20px\"><a href=\"https:\/\/wordpress.org\/plugins\/pathguard-redirects\/\" target=\"_blank\" style=\"text-decoration: none;color: #4a3bca;font-weight: bold\" rel=\"noopener\">View Details \u2192<\/a><\/td>\n<\/tr>\n<\/table><\/div>\n<div class=\"plugin-short-desc\" style=\"margin: 20px 0;padding: 12px 15px;background: #f9fafb;border-left: 4px solid #4a3bca;border-radius: 6px;font-style: italic;color: #4a5568\">Block specific relative URLs on your site and redirect visitors to a custom destination or your theme&#039;s 404 page.<\/div>\n<p>URL Blocker is a lightweight, developer-friendly plugin that lets site administrators block any relative URL on their WordPress site and control exactly what happens when a visitor tries to access it.<\/p>\n<p><strong>How it works<\/strong><\/p>\n<p>Add the relative paths you want to block (one per line) and choose what should happen when someone visits them:<\/p>\n<ul>\n<li><strong>Custom URL redirect<\/strong> \u2014 send visitors to any destination URL with a 302 redirect.<\/li>\n<li><strong>404 Not Found<\/strong> \u2014 serve your theme&#8217;s native 404 page with a proper HTTP 404 status header (no redirect, the URL stays the same).<\/li>\n<\/ul>\n<p><strong>Key features<\/strong><\/p>\n<ul>\n<li>Block any number of relative paths (e.g. <code>\/secret-page\/<\/code>, <code>\/members-only\/<\/code>).<\/li>\n<li>Choose the redirect action per-site: custom URL or 404 page.<\/li>\n<li><strong>Exclude Admins<\/strong> \u2014 logged-in administrators are bypassed by default so they always have access. The option can be unchecked to restrict admins too.<\/li>\n<li>One-click access via the <strong>Settings<\/strong> link on the Plugins list page.<\/li>\n<li>All plugin data is removed from the database automatically when the plugin is deactivated.<\/li>\n<li>Paths matched with and without trailing slash \u2014 <code>\/secret-page<\/code> and <code>\/secret-page\/<\/code> both work.<\/li>\n<li>URL-encoded paths are decoded before matching, preventing bypass attempts like <code>\/%73ecret-page\/<\/code>.<\/li>\n<\/ul>\n<p><strong>Security<\/strong><\/p>\n<ul>\n<li>CSRF protection on every save using WordPress nonces.<\/li>\n<li>Strict capability check (<code>manage_options<\/code>) before processing any form data.<\/li>\n<li>All input is sanitised (<code>sanitize_textarea_field<\/code>, <code>esc_url_raw<\/code>, <code>sanitize_key<\/code>).<\/li>\n<li>All output is escaped (<code>esc_textarea<\/code>, <code>esc_attr<\/code>, <code>esc_html_e<\/code>).<\/li>\n<li>Uses <code>wp_safe_redirect<\/code> to prevent open-redirect abuse.<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Block specific relative URLs on your site and redirect visitors to a custom destination or your theme&#039;s 404 page.<\/p>","protected":false},"author":1,"featured_media":9317,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[252],"tags":[1692,1693,810,664,1694,555],"class_list":["post-10898","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-trends","tag-access-control","tag-block-pages","tag-redirect","tag-security","tag-url-blocker","tag-wordpress-plugin"],"_links":{"self":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts\/10898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/comments?post=10898"}],"version-history":[{"count":0,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts\/10898\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/media\/9317"}],"wp:attachment":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/media?parent=10898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/categories?post=10898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/tags?post=10898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}