Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

store media library link non secure

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › store media library link non secure

Tagged: media library

  • This topic has 2 replies, 3 voices, and was last updated 7 years, 2 months ago by admin.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 21, 2018 at 5:51 pm #14715
    juliadieguez
    Member

    Dear Support,

    I created in my website a page where I want to sell my ebooks. All work perfectly… except if I enter the direct link of the media library of my ebook… The ebook will appear and I will be able to download the ebook without making the buying process.

    I am afraid If I block the upload folder, the whole media library will not be index.. therefore I just need to block the links of the pdfs.

    If someone knows the worpress media settings, any body will be able to enter where the ebooks are stored in the media library of wordpress and download without buying it…

    how can I prevent this?

    thanks

    February 21, 2018 at 6:41 pm #77342
    wzp
    Moderator

    If someone knows the worpress media settings, any body will be able to enter where the ebooks are stored in the media library of wordpress and download without buying it…

    You should try creating a directory for your downloadable files, that is OUTSIDE the directory structure of your website. For instance, creating a “4salestuff” folder at the root level of your server. You’d then use FTP (in BINARY mode) to place your files into this directory.

    eStore will then take care of encrypting the download links from this directory that are provided to customers.

    As for securing the actual files in the directory, consider the following…

    Create an empty “index.html” file in the directory that contains your downloads. For extra sarcasm, you might put a message in it like:

    Find what you’re looking for?

    Or better yet, a popup ad…

    Or you can “play nice” and just redirect them back to your main page:

    <meta HTTP-EQUIV=”REFRESH” content=”0; url=http://www.yourdomain.com”>

    Also, inside the downloads directory, create an “.htaccess” file with one line:

    Options -Indexes

    In the server’s document root directory, create a “robots.txt” file. It should contain the following lines…

    User-agent: *

    Disallow: /wp-admin/

    Disallow: /wp-content/

    Disallow: /wp-includes/

    Disallow: /wp-content/themes/

    Disallow: /wp-plugins/

    Disallow: /4salestuff/

    Basically, create a “Disallow” line for each directory you’d like robots and spiders to ignore. Note: the “robots.txt” is an optional “please don’t do that” type of thing. Search engines are not required to honor it.

    To enforce mandatory exclusion of directories and files, you can add/edit the “.htaccess” file in the server’s root directory, but that gets into the “running with scissors” area. You can do some serious damage, if you aren’t careful… 8)

    February 22, 2018 at 1:29 am #77343
    admin
    Keymaster

    The following post should be helpful for you:

    https://support.tipsandtricks-hq.com/forums/topic/download-directory-protection

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ