/    Sign up×
Community /Pin to ProfileBookmark

Hi.

How can i give a read permission to a flash movie and leave no permission to the rest (world)

In other words, i want only the flash be able to read the file.

thanks in advance

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogMay 27.2008 — I don't think you can. Your file is on the server, but the request for it is coming from the client via HTTP; so I know of know way to tell on the server side that a request for the file is coming from flash and not from any other client that sends HTTP requests.
Copy linkTweet thisAlerts:
@bluestartechMay 27.2008 — assuming your running on linux and only want the php script to acess flash movie, use chmod as follows:

chmod 660 movie.swf, this will make the file readable only by owner of file and deny access to all other users.

however if your php script is run under the webserver username(likely!) then this may not work, but changing the group belonging of the file would...e.g.

chown newuser flash.swf

chgrp apache flash.swf (change group belonging to group the webserver belongs to)

this is a little convoluted but should work...

another solution would be to place content u don't want to explicitly share in a directory outside the servers public directories, and just point the php script to read file frm there..
×

Success!

Help @ricosushi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...