This variaton on the lafs-rpg nginx rules lets you have a folder that (hopefully) can't be browsed.
Example:
- You can see https://dubiousdod.org/blog/drafts/example-draft-post.html (redirects to a long url with a dircap and then some)
- If you try to see the
drafts/
folder, you'll be redirected to [the empty]index.html
- If you try changing the
DIR2-RO
in the URL toCHK
,SSK
, etc. and peek at the dircap as a file, what you get is what you deserve (WYGIWYD)
Hope I did this right and didn't miss anything.