/    Sign up×
Community /Pin to ProfileBookmark

How to prevent Direct File link

Any body have an idea how to prevent the direct file link.

Thanks

[URL=”http://www.zahipedia.com/2009/04/14/lg-gc900-viewty-2-exposed/”]LG GC 900 Viewty 2 exposed[/URL]

to post a comment
PHP

8 Comments(s)

Copy linkTweet thisAlerts:
@MindzaiApr 29.2009 — Keep files outside of DocumentRoot.
Copy linkTweet thisAlerts:
@zahidrafauthorApr 29.2009 — It's a download able file and have to give access to the customer when they pay.


When they are downloading the file they can copy the exact path of the file.

Thanks

http://www.zahipedia.com
Copy linkTweet thisAlerts:
@felgallApr 30.2009 — What you do is use a servelet script that reads the file from outside the public part of your site and delivers it to them. You just need to send the right headers on the front to identify the appropriate file type as well as whatever additional processing that you want to use to do the access restriction.
Copy linkTweet thisAlerts:
@zahidrafauthorApr 30.2009 — I have a exe file and want to prvent from the direct download

like http://www.mysite.com/download.com/file.exe

How I can prevent some one not to download directly.

Thanks

http://www.zahipedia.com
Copy linkTweet thisAlerts:
@MindzaiApr 30.2009 — Your question has been answered twice already! Store it outside the DocumentRoot, then use a script to authorise a user and serve the file to them, making sure to set the headers as necessary.
Copy linkTweet thisAlerts:
@zahidrafauthorApr 30.2009 — i am on a share hosting how it is possible over there .

?

Technology News
Copy linkTweet thisAlerts:
@MindzaiApr 30.2009 — It shouldn't make a difference, you will still normally have a DocumentRoot inside your home directory on shared hosting.
Copy linkTweet thisAlerts:
@felgallMay 01.2009 — Some shared hosting doesn't allow you to store things outside of te public part of your web site. If that is the case then create a password protected folder with a hard to guess name and place the files in tere. The servlet script will be able to read them from there without the password but your visitors will not even know the name of the folder and will not know the password even if they do guess the folder name.
×

Success!

Help @zahidraf 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.19,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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