Prevent direct access
-
I am trying to install Prevent Direct Access. I need people to be unable to access pages on my website other than the homepage directly. PDA gives me this message after installation:
“PDA REWRITE RULES
It looks like you’re using NGINX web server. NGINX doesn’t have .htaccess-type capability, Prevent Direct Access Free cannot modify your server configuration automatically for you. Here’s how you can do it manually:
Update our rewrite rules on your NGINX server as per this instruction:
rewrite wp-content/uploads/pda(/[A-Za-z0-9@./&+-]+)+.([A-Za-z0-9_@./&+-]+)$ “/index.php?pda_v3_pf=$1&is_direct_access=true&file_type=$2” last;
rewrite private/([a-zA-Z0-9-_.]+)$ “/index.php?pda_v3_pf=$1″ last;”I tried to follow the instructions “Find your website’s Nginx config file which is often located at
/etc/nginx/site-availableor/etc/nginx/conf/site-available(if you’re using Arch Linux)” except I cannot find how to do that.Is there a better way of preventing direct access to pages via their URL or is this the best? How do I accomplish this? This is my last task before launching. Please help.
The blog I need help with is: (visible only to logged in users)
-
Hey there,
It looks like you already posted this question here. I have responded to your initial post and will close this one as a duplicate.
Thanks!
- The topic ‘Prevent direct access’ is closed to new replies.