Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Sponsored Reviews   High Bandwidth Dedicated Servers   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 02-27-2006, 09:43 PM   #1 (permalink)
Inactive
 
Join Date: 02-27-06
Posts: 2
iTrader: 0 / 0%
Latest Blog:
None

teh_spazz is liked by many
.htaccess question

Hi all,

I have a problem here. I have a flash file on my site that loads mp3s from a link. These mp3s (legal or not, doesn't matter) I don't want to be downloaded by others. Is there a way to restrict everything, [b]but the flash filep/b] from accessing the mp3s? The mp3s are located in a folder /music/.
teh_spazz is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 02-27-2006, 09:54 PM   #2 (permalink)
v7n Mentor
 
noob_0001's Avatar
 
Join Date: 02-17-05
Posts: 906
iTrader: 0 / 0%
Latest Blog:
None

noob_0001 is a splendid one to beholdnoob_0001 is a splendid one to beholdnoob_0001 is a splendid one to beholdnoob_0001 is a splendid one to beholdnoob_0001 is a splendid one to beholdnoob_0001 is a splendid one to beholdnoob_0001 is a splendid one to beholdnoob_0001 is a splendid one to beholdnoob_0001 is a splendid one to beholdnoob_0001 is a splendid one to beholdnoob_0001 is a splendid one to behold
Yes you can put a .htaccess file in the music directory and and have it check to see if the referal is from the flash file.

If it is not redirect to root of domain or to a custom 403 page.

You just need to go to apache and see what your options are for your version of apache. You can find everything that you need at apache.

You will be using mod-rewrite?

You can also use enviromental variables and look for user agents. This way you can keep your directory from being easily indexed.
__________________
Confucius says:
"Those who seek internet marketing answers should use v7n search!" : )

noob_0001 is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-27-2006, 11:57 PM   #3 (permalink)
Inactive
 
Join Date: 02-27-06
Posts: 2
iTrader: 0 / 0%
Latest Blog:
None

teh_spazz is liked by many
Well after much ado I figured out some other stuff ...

Code:
Options All -Indexes order deny,allow deny from all Allow from localhost
Now I assume this should work, but it doesn't. I'm trying desperately to get this to work, anyone, help?
teh_spazz is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-01-2006, 11:04 AM   #4 (permalink)
Contributing Member
 
jwalsh's Avatar
 
Join Date: 03-22-04
Location: Cleveland, OH
Posts: 388
iTrader: 0 / 0%
jwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to all
Just reference them with actionscript, but don't store the files in a public directory like public_html on *nix systems.

You'll need some kind of server technology to do this, php, etc... but that way people cannot directly access the files.
__________________
Cleveland Web Application Development by Designing Interactive
jwalsh is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
htaccess mod_rewrite question CrapDice Coding Forum 3 10-08-2007 09:42 PM
htaccess question JustRetarded Coding Forum 4 06-19-2007 08:45 AM
htaccess syntax question insidedesign Web Hosting Forum 3 02-26-2007 01:04 PM
.htaccess redirect question Pimpen 2010 Coding Forum 4 04-04-2006 10:34 AM
Htaccess issue & Search engine positioning question T-Kai Coding Forum 10 11-04-2003 05:51 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 10:31 AM.
© Copyright 2008 V7 Inc