• Resolved xristoskmedia

    (@xristoskmedia)


    Hello, I am trying to use the free version of the plugin on a staging website hosted on Instawp environment. I have a pdf I would like to protect its file url. However, the file can be accessed through each protected link normally.

    InstaWP uses nginx proxy which is probably the reason for this.

    Is there a way around it or a configuration that would actually protect the files url?

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Support Quinnie

    (@quinniewpfolio)

    Hi @xristoskmedia ,

    Thank you for reaching out to us.

    As you’re using Nginx, could you help to ask your hosting server implement our rewrite rule and check if it works please?

    1. 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)
    2. Paste the copied rules in the server block
    server {
    location / {
    ...
    }
    #Put our rewrite rules here, i.e.
    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;
    }

    3. Restart your Nginx server.

    Awaiting your reply.

Viewing 1 replies (of 1 total)

The topic ‘Using plugin on an Instawp environment’ is closed to new replies.