PathGuard Redirects
Block specific relative URLs on your site and redirect visitors to a custom destination or your theme's 404 page.
Utiliser avec prudence
PathGuard Redirects works, but test it on a staging site before relying on it in 2026. Was last updated 2 months ago, and scores 60/100 on our health check.
- Testé avec le dernier WordPress (7.1)
- Petite base d'utilisateurs (<10 installations actives)
- Très peu de critiques jusqu'à présent
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where PathGuard Redirects stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| access-control | >100 |
| block-pages | >100 |
| réorienter | >100 |
| la sécurité | >100 |
| url-blocker | >100 |
About PathGuard Redirects
À partir du Lisez-moi officiel · v1.1.0Description
PathGuard Redirects 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.
Comment cela fonctionne
Add the relative paths you want to block (one per line) and choose what should happen when someone visits them:
- Custom URL redirect — send visitors to any destination URL with a 302 redirect.
- 404 Not Found — serve your theme’s native 404 page with a proper HTTP 404 status header (no redirect, the URL stays the same).
Principales caractéristiques
- Block any number of relative paths (e.g.
/secret-page/,/members-only/). - Choose the redirect action per-site: custom URL or 404 page.
- Exclude Admins — logged-in administrators are bypassed by default so they always have access. The option can be unchecked to restrict admins too.
- One-click access via the Settings link on the Plugins list page.
- Settings are kept when the plugin is deactivated and removed from the database when it is deleted.
- Paths are matched with or without a trailing slash and regardless of case —
/secret-page,/secret-page/and/Secret-Page/all match. - URL-encoded paths are decoded before matching, preventing bypass attempts like
/%73ecret-page/. Non-ASCII paths (e.g./café/) are supported. - Full URLs pasted into the list are converted to paths on save.
- Page caches are purged when the rules change (WP Super Cache, WP Rocket, W3 Total Cache, LiteSpeed Cache; other caches can use the
pathguard_redirects_rules_updatedaction).
La sécurité
- CSRF protection on every save using WordPress nonces.
- Strict capability check (
manage_options) before processing any form data. - All input is sanitised (
sanitize_text_field,esc_url_raw,sanitize_key). - All output is escaped (
esc_textarea,esc_attr,esc_html_e). - The redirect destination can only be set by administrators; visitors cannot influence where they are sent.
Installation
- Téléchargez le dossier
pathguard-redirectsà/wp-content/plugins/. - Activez le plugin via l'écran plugins dans WordPress.
- Go to Settings → PathGuard Redirects (or click the Settings link on the Plugins page).
- Enter the relative URLs you want to block, choose a redirect action, and click Save Settings.
Journal de modifications
Fixes external redirects and URL-encoded path matching. Settings are now kept on deactivation. Saved rules are normalised to lowercase paths the next time you save.
1.1.0
- Fix: Custom URL redirects to external domains no longer send visitors to wp-admin.
- Fix: Percent-encoded paths (e.g.
/%73ecret-page/) and non-ASCII paths (e.g./café/) are now matched correctly. - Fix: 404 action no longer breaks on classic themes without a 404.php template.
- Fix: Relative redirect destinations such as
/home/can now be saved. - Fix: Destination URLs keep their percent-encoding when saved.
- Change: Settings are kept on deactivation and removed only when the plugin is deleted.
- New: Path matching is case-insensitive and supports WordPress installed in a subdirectory.
- New: Full URLs and paths without a leading slash are normalised on save; duplicates are removed.
- New: Relative redirect destinations are resolved against the site home.
- New: Falls back to the 404 page, with a settings warning, if the destination is itself blocked.
- New: Supported page caches are purged when rules change; new
pathguard_redirects_rules_updatedaction. - Tweak: Settings page script is now enqueued properly.
1.0.0
- Version initiale.
- Block relative URLs with per-line textarea input.
- Redirect action: Custom URL (302) or 404 page.
- Exclude Admins option, pre-enabled on activation.
- Settings link on the Plugins list page.
- Automatic database cleanup on deactivation.
- URL-encoding bypass protection via
rawurldecode(). - CSRF, capability, and sanitisation hardening.
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best PathGuard Redirects alternatives
All access-control plugins →FAQ
PathGuard Redirects: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is PathGuard Redirects free?
Yes. PathGuard Redirects is free to download and use from the official WordPress.org plugin directory.
Is PathGuard Redirects safe to use in 2026?
PathGuard Redirects works, but test it on a staging site before relying on it in 2026. Was last updated 2 months ago, and scores 60/100 on our health check.
How many websites use PathGuard Redirects?
PathGuard Redirects is active on <10 WordPress websites and has been downloaded 416 times since it launched in May 2026. It was downloaded 71 times in the last 30 days.
Does PathGuard Redirects work with WordPress 7.1?
Yes. The developer has tested PathGuard Redirects up to WordPress 7.1.5, the latest release. It requires WordPress 5.8 or newer.
What PHP version does PathGuard Redirects need?
PathGuard Redirects requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was PathGuard Redirects last updated?
The latest version, 1.1.0, was released on September 27, 2026 (2 months ago).
Who makes PathGuard Redirects?
PathGuard Redirects is developed and maintained by MD. Samrat Hossen.
What are the best alternatives to PathGuard Redirects?
The most popular alternatives to PathGuard Redirects are PublishPress Capabilities:… (90K+ installs), Content Control (40K+ installs) and PublishPress Permissions: A… (10K+ installs).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit
