How to make redirected download urls be only accessible by logged-in members?
-
In general the question is: How to mask external download links as internal links and to be only accessible by logged-in wp users at htaccess level or with php script? We have perl based script at our external url and its generating different download urls. If you help how can we apply it on external site we can do so.
We successfully redirect https://www.ourwebsite.com/resources to external download link by simple htaccess code:
Redirect 301 /resources https://external.com/direct-download-link1
However, if the urls (www.ourwebsite.com/resources/download-1.html etc.) are scraped by wordpress members and share & paste into their browser address bars when they don’t logged in then the download links are still accessible. We want to prevent from it. So how to disallow non-members from accessing download links directly?
- The topic ‘How to make redirected download urls be only accessible by logged-in members?’ is closed to new replies.