Note that there are some explanatory texts on larger screens.

plurals
  1. POPrevent direct access to mp3/wav files while allowing a flash player to access them with .htaccess (or PHP)
    primarykey
    data
    text
    <p>How do I prevent direct access/download to mp3/wav files while allowing a flash player to access them with .htaccess (or PHP)? I've been looking for a solution with only partial and non-functioning solutions to show for my efforts.</p> <p>The solution below seemed like a great fix at first but it also blocks my flash player from accessing the files. <b>Could I only allow access from particular pages?</b>:</p> <pre><code>&lt; Files ~ ".*\..*"&gt;&lt;br /&gt; order allow,deny&lt;br /&gt; deny from all&lt;br /&gt; &lt; /Files&gt; </code></pre> <p>The solution below seemed great at first because it didn't allow people to view the files in the directory but if the user knows the exact URL of the music file, they can download it:</p> <pre><code>SetHandler application/x-httpd-php&lt;br /&gt; SetHandler application/x-shockwave-flash </code></pre> <p>Now, I came across <a href="http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/" rel="nofollow noreferrer">this post</a> that forces a user to produce a username and password <a href="http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/" rel="nofollow noreferrer">using htaccess</a> but I dialog box pops up when on the flash player screen. <b>Is there a way for the page the send the login info without the user doing anything?</b></p> <hr> <p><b>If this isn't a secure method, can someone suggest a secure and relatively straight-forward method of implementing this restriction feature? URLs and examples would be greatly appreciated</b></p> <p>P.S. This is a WordPress site, hence, I'll be using <b>PHP</b> as a programming language to implement any solution.</p> <p>P.S. Looking to block novices from downloading, NOT hackers/crackers/internet wizards.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload