uTPro.Feature.UrlGuard
18.0.0
dotnet add package uTPro.Feature.UrlGuard --version 18.0.0
NuGet\Install-Package uTPro.Feature.UrlGuard -Version 18.0.0
<PackageReference Include="uTPro.Feature.UrlGuard" Version="18.0.0" />
<PackageVersion Include="uTPro.Feature.UrlGuard" Version="18.0.0" />
<PackageReference Include="uTPro.Feature.UrlGuard" />
paket add uTPro.Feature.UrlGuard --version 18.0.0
#r "nuget: uTPro.Feature.UrlGuard, 18.0.0"
#:package uTPro.Feature.UrlGuard@18.0.0
#addin nuget:?package=uTPro.Feature.UrlGuard&version=18.0.0
#tool nuget:?package=uTPro.Feature.UrlGuard&version=18.0.0
uTPro URL Guard for Umbraco
Documentation: https://docs.utpro.dev/uTPro.Feature.UrlGuard/
Manage URL redirects, URL lock/block rules, and 404/500 error request tracking directly inside the Umbraco backoffice (Settings → Advanced → URL Guard).
Supports Umbraco 17 and 18 (net10.0).
Key Features
- URL Redirects
- Match Exact URLs (
/page1) or Prefix / Child URLs (/page1/*) with optional child-path forwarding (/page1/child→/target/child) and query-string preservation. - Redirect to an Umbraco Content node (by GUID key), Media node (by GUID key), or any Custom URL using
301,302,307, or308.
- Match Exact URLs (
- URL Lock & Role Enforcement
- Block sensitive paths (such as
/.git,/.env,/wp-login.php) before they reach application controllers. - Lock internal or management APIs so only authenticated backoffice users (optionally restricted to specific user group aliases) can access them.
- Block sensitive paths (such as
- Scope Filtering (Website / Backoffice / Both)
- Every Redirect and Lock rule can target Website only, Backoffice only, or Both.
- 404 / 500 Error Request Tracker
- Captures failing requests in the database, grouped by path, status code, scope, and HTTP method with hit counts and last-seen timestamps.
- Convert any logged
404into a301Redirect or a Lock rule in one click.
Installation
dotnet add package uTPro.Feature.UrlGuard
No Program.cs edits are required. The package self-wires its composer, NPoco database migration, runtime middleware, and backoffice UI on startup.
Configuration
Optional settings under uTPro:Feature:UrlGuard in appsettings.json:
{
"uTPro": {
"Feature": {
"UrlGuard": {
"Enabled": true,
"DefaultScope": "both",
"CaptureErrorStatusCodes": [ 404, 500 ],
"LogLockedRequests": false,
"ErrorLogRetentionDays": 30,
"MaxErrorLogRows": 5000
}
}
}
}
Security
All backoffice management endpoints under /umbraco/management/api/v1/utpro/url-guard require authenticated Settings section access (AuthorizationPolicies.SectionAccessSettings).
License
Free to use (including commercially) under a proprietary End User License Agreement. Distributed as a compiled NuGet package — source is not published; modification, reverse-engineering and redistribution are not permitted.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Umbraco.Cms.Api.Management (>= 18.0.0 && < 19.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
v17.0.0 / v18.0.0: Initial release of uTPro URL Guard — URL redirect rules (exact/prefix to Content, Media, or custom URLs), URL lock/block rules with Website/Backoffice/Both scope and role enforcement, and grouped 404/500 request error tracking with one-click rule creation.