WPChill / download-monitor

A WordPress plugin which provides an intuitive UI for uploading and managing downloadable files (including support for multiple versions), inserting download links into posts & logging downloads.
http://wordpress.org/extend/plugins/download-monitor/
262 stars 117 forks source link

Adjust the DLM .htaccess definitions so that they can be added in the root .htaccess file as well #1601

Open andrei-l-cristea opened 2 weeks ago

andrei-l-cristea commented 2 weeks ago

We should adjust the definitions set so that the path to the protected folders are included, this way if we decide to advertise the htaccess file editor plugin in combination with Download Monitor we can set the rules directly from the main .htaccess file:

Protect the dlm_uploads directory under wp-content/uploads

RewriteEngine On RewriteCond %{REQUEST_URI} ^/wp-content/uploads/dlm_uploads/ # Apache 2.4 and up Require all denied # Apache 2.3 and down Order Allow,Deny Deny from all

these should be tested thoroughly.