• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / Prevent direct access

Prevent direct access

  • Unknown's avatar
    emlllc · Member · Jan 30, 2024 at 7:33 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    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-available or /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)

  • Unknown's avatar
    staff-dragon · Staff · Feb 1, 2024 at 12:32 am
    • Copy link Copy link

    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.

Tags

  • account
  • currency
  • Jetpack

About this topic

  • In: Support
  • 1 participant
  • 1 reply
  • Last activity 2 years
  • Latest reply from emlllc

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions