location ~ protected_directory/ {
if ($http_cookie !~ "wordpress_logged_in") {
return 403;
}
# TODO: your custom proxy here
}
Warning: this does NOT check if you have permission and/or actual ownership for the requested file. It only checks if you are logged in or not.
Leave a Reply