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.
How it works
Add the relative paths you want to block (one per line) and choose what should happen when someone visits them:
Key features
/secret-page/, /members-only/)./secret-page and /secret-page/ both work./%73ecret-page/.Security
manage_options) before processing any form data.sanitize_textarea_field, esc_url_raw, sanitize_key).esc_textarea, esc_attr, esc_html_e).wp_safe_redirect to prevent open-redirect abuse.