I’ve done some looking and it appears that Caddy doesn’t use .htaccess but rather the rewrite function. I’m not using basicauth because I have set up another service that will handle auth (its actually GitHub - causefx/Organizr: HTPC/Homelab Services Organizer - Written in PHP). Therefore users won’t see links if they don’t login. What is would like to do is restrict direct access to specific directories and redirect to a /forbidden page, but allow them if a link was clicked from the root directory ex. Ping-pong.opendns.net. link clicked brings you to ping-pong.opendns.net/ball. But directly trying to navigate to ping-pong.opendns.net/ball redirects to /forbidden.
I’ve done a bunch of searching but I don’t understand the syntax of rewrite (kind of new, first webserver).