Document URLs & Permalinks
URL Structure
Every document gets two unique hash-based URLs:
- Ungated:
yoursite.com/d/?h={regular_hash} - Gated:
yoursite.com/d/?h={gated_hash}
Each hash is a short, unique 7-character string generated automatically when a file is uploaded. The plugin ensures no two files share the same hash.
Gated Link Behavior
When a visitor clicks a gated link:
- If they’re already logged in → the document downloads immediately.
- If they’re not logged in → a login/registration modal appears.
- After authentication → the document downloads automatically.
Ungated Link Behavior
Ungated links bypass all access control. The document downloads immediately for any visitor, regardless of authentication status. Downloads are still tracked.
Custom Upload Directory
By default, files are stored in wp-content/uploads/tooldocs/. You can change this in Settings → General → Upload Directory. The directory must be within wp-content/uploads/ and is created automatically if it doesn’t exist.