Jump to content

Recommended Posts

i have a few question about file permissions.

which is the best way to set a permission to a mp3 tha ti can play on the website, but if anyone try to get it from the directory they wont be able to?

 

like if i am playing thissong.mp3 and someone went to the directory to try and get the file music/songs/thissong.mp3 they would get some kind of error.

 

also for folders that don't have a index file. which permission would be the bes tinstead of creating a number of index for each, but not give a use permusic to see the context if the go to

mydirectory/functions/

Link to comment
https://forums.phpfreaks.com/topic/73139-chmod-file-permissions-question/
Share on other sites

File permissions will not stop anyone from being able to download them directly. Most files on yuour web site need only be 644.

 

Your second question is unreadable.

 

so what you are saying all those music website that sell music  have no security at all?

you can still go in to their directory and take their music?

so what you are saying all those music website that sell music  have no security at all?

you can still go in to their directory and take their music?

 

Not at all, its done with a rule in there .htaccess file, or they keep there mp3's outside of the web root.

corillo, I'm not quite sure what you're asking, but this might help:

 

When you make a request to Apache, it will look for a .htaccess file in the folder of the request, in the folder above that folder and so on until it hits the web root.  If it finds a file it loads the commands in that .htaccess file and evaluates them.  Your service provider could choose to restrict htaccess files, but they don't 'control them' in the sense that you mean, I think.  As for that last question, I don't know what you're asking x.x.

corbin that was my question; if my provider would let me use htaccess.

i guess ill give it a try, i just wanted to be sure. because i don't want to learn something i wont be able to use.

 

and kart i control the mp3 threw flash, but now they got software that would get the content inside your flash and find out everything you have in it.

http://www.javascriptkit.com/howto/htaccess10.shtml

 

That's an example that blocks requests to images based on referer....

 

You could try testing that before making your own/modifying a script.

 

Basically you just need to make sure your host allows the mod_rewrite module in .htaccess files.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.