A
asadikhan
Hi,
I have an Audio folder under WWW on my website. My site is hosted with
an online company. Inside the Audio folder I have bunch of mp3s. I
want to embed these mp3s using flash, but I do not want to allow users
to simply browse to the mp3 file and be able to download it. Here is
my web.config file:
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/
v2.0">
<appSettings/>
<location path="Audio">
<system.web>
<compilation debug="true"/>
<authorization>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="Audio/mysong.mp3">
<system.web>
<compilation debug="true"/>
<authorization>
<deny users="*"/>
</authorization>
</system.web>
</location>
</configuration>
After doing this if I browse to www.mysite.com/Audio it tell me that
the directory listing is not permitted. However, I can still browse to
the song file and create external links to it and download it. Any
ideas?
I have an Audio folder under WWW on my website. My site is hosted with
an online company. Inside the Audio folder I have bunch of mp3s. I
want to embed these mp3s using flash, but I do not want to allow users
to simply browse to the mp3 file and be able to download it. Here is
my web.config file:
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/
v2.0">
<appSettings/>
<location path="Audio">
<system.web>
<compilation debug="true"/>
<authorization>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="Audio/mysong.mp3">
<system.web>
<compilation debug="true"/>
<authorization>
<deny users="*"/>
</authorization>
</system.web>
</location>
</configuration>
After doing this if I browse to www.mysite.com/Audio it tell me that
the directory listing is not permitted. However, I can still browse to
the song file and create external links to it and download it. Any
ideas?