473,382 Members | 1,349 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How to prevent download

Dear Members

I have an asp.net application , we are selling certein articles on net
(saved in pdf files) files are located in a folder on server, only the
authenticated user are allowed to downlod the file (A link in the member
area), Problem is when a user download a file he get the static link and
later he can use this link in download accleator to directly download
the file. how can we prevent such downloads , any help.

Best Regards
Shahid Saleem

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #1
2 1180
Shahid Saleem wrote:
Dear Members

I have an asp.net application , we are selling certein articles on net
(saved in pdf files) files are located in a folder on server, only the
authenticated user are allowed to downlod the file (A link in the
member area), Problem is when a user download a file he get the
static link and later he can use this link in download accleator to
directly download the file. how can we prevent such downloads , any
help.

Best Regards
Shahid Saleem

*** Sent via Developersdex http://www.developersdex.com ***


Store the files outside of the website, have an "upload.aspx" with parameters
to identify the file that should be uploaded, perform any permission checks
you want, and use Response.WriteFile to send the file to the user.

Hans Kesting
Nov 19 '05 #2
You could lock down the directory with an ISAPI filter. Or simply
store them elsewhere and drop a custom 404 handler into your app that
sniffs for .pdf extensions and serves files from your alternate
location after checking security.

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: python | last post by:
I have a script that downloads some webpages.The problem is that, sometimes, after I download few pages the script hangs( stops). (But sometimes it finishes in an excellent way ( to the end) and...
8
by: Alpenvrouwtje | last post by:
Hallo, Does anyone have a (simple?) javascript code for me to prevent that people take the photo's of my website while they use the right mouse button. I know that there are ways around this...
5
by: George | last post by:
So I have a file, which is a zip file I want to let people download. But I don't want to let other sites link to my zip file -- I only want people to be able to download the file by going through...
11
by: moondaddy | last post by:
I have images that I need to prevent the user from doing a right click and selecting "Save Picture As"? How can I do this? -- moondaddy@nospam.com
6
by: Divya | last post by:
Hi, I have a web page which generates a CSV file based on some user input. When this file is downloaded by the user, the file is being automatically converted to .xls. Any idea how I can prevent...
3
by: Ryu | last post by:
Hi, May I know how to prevent Javascript from being dlownloaded when the user saves at "View Source"? I have added "js" at IIS's application configuration's mapping and i have added the...
1
by: Vadim | last post by:
Our program is planing to often download generated reports in MS Word and it's hihg unlikely to bother uthers to push buttons in appearing download dialog for our corporate site. How to prevent...
6
by: teser3 | last post by:
I have my PHP inserting into Oracle 9i. But how do I prevent duplicate record entries? I only have 3 fields in the insert in the action page: CODE <?php $c=OCILogon("scott", "tiger",...
1
by: Juerg Beck | last post by:
Hello all I'm completely new to php but a complete newbie when it comes to unix. So please don't laugh about my problem. I have programmed a nice password check with php, javascript and a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.