/    Sign up×
Community /Pin to ProfileBookmark

Preventing download of video linked from php file

Hi Guys!

I have this code:

[code=php]
<IMG start=mouseover height=”240″ dynsrc=”http://mysite.com/?id=mymovie.wmv” width=”320″ border=”2″>
[/code]

This means that you cannot directly access the movie from the url, as the php page checks the refering page. The thing is that there is still the right click function and there is an option to save the video. I have seen it when images are linked from php files, that when you right click and save as, it goes to save the php file and not the image itself. This does not work in this case, as it saves the movie directly.

Does anyone know how to over come this? Maybe there are some headers that can be placed to stop it saving the file..

Any help is greatly appreciated,

cheers.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@SheldonFeb 06.2006 — There is no absolute way to prevnt it.
×

Success!

Help @artemis 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 5.5,
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,
)...