473,405 Members | 2,373 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,405 software developers and data experts.

Preventing People from Accessing my ebooks..

I have a Web Site that I'm interested in selling eBooks from. I'm
having a problem setting it up as I would like, and hope that someone
can help me out.

Inside my domain I have a folder called eBooks. Inside this folder I
have some eBooks, such as eggrecipes.pdf

If the user types in the URL <domain>/eBooks/eggrecipes.pdf the eBook
eggrecipes.pdf will appear in the browser.

I don't want this to happen. Instead, I would like for the browser to
say "access not available" or something like that. Anything, but for
the user to be able to see and view and download this pdf file by only
typing in the address in the URL.

I've turned "directory browsing" on my account to "off"...I thought
that would work, but I can still type in the URL, and see the eBook.

You may be wondering why I want to even have the eBook on this Web Site
if users can't view it. Well, I want them to purchase this eBook from
my Web Site, and once they do, it will be forwarded to them via
software.

Understand? What do I need to do ?

Thanks so Much...

Sep 22 '06 #1
3 1621
This link will help, its a tutorial on how to protect your PDF files and
serve them as streams instead of allowing connections to the file

http://www.johntimney.com/home/redir...leDownload.asp

It even comes with sample code!

--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com

<sa***********@yahoo.cawrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
>I have a Web Site that I'm interested in selling eBooks from. I'm
having a problem setting it up as I would like, and hope that someone
can help me out.

Inside my domain I have a folder called eBooks. Inside this folder I
have some eBooks, such as eggrecipes.pdf

If the user types in the URL <domain>/eBooks/eggrecipes.pdf the eBook
eggrecipes.pdf will appear in the browser.

I don't want this to happen. Instead, I would like for the browser to
say "access not available" or something like that. Anything, but for
the user to be able to see and view and download this pdf file by only
typing in the address in the URL.

I've turned "directory browsing" on my account to "off"...I thought
that would work, but I can still type in the URL, and see the eBook.

You may be wondering why I want to even have the eBook on this Web Site
if users can't view it. Well, I want them to purchase this eBook from
my Web Site, and once they do, it will be forwarded to them via
software.

Understand? What do I need to do ?

Thanks so Much...

Sep 23 '06 #2
Hi,

sa***********@yahoo.ca wrote:
I have a Web Site that I'm interested in selling eBooks from. I'm
having a problem setting it up as I would like, and hope that someone
can help me out.

Inside my domain I have a folder called eBooks. Inside this folder I
have some eBooks, such as eggrecipes.pdf

If the user types in the URL <domain>/eBooks/eggrecipes.pdf the eBook
eggrecipes.pdf will appear in the browser.
No offense meant, but... are you sure you're qualified to make an
e-commerce website, when you don't know how to handle the security on
the server?

I ask genuinely, and I understand that there is a learning curve in
managing a server, but it seems to me that these are very basic things.

I don't want this to happen. Instead, I would like for the browser to
say "access not available" or something like that. Anything, but for
the user to be able to see and view and download this pdf file by only
typing in the address in the URL.

I've turned "directory browsing" on my account to "off"...I thought
that would work, but I can still type in the URL, and see the eBook.
Directory browsing tells the server that if the folder name is entered
in the browser's location bar, the server should return a list of all
files in that folder, formatted as HTML. If you turn directory browsing
off, it will return an error page, but file access is still allowed.

You must absolutely place your protected files in a folder that is not
accessible to the anonymous users. Depending on which server you have,
there are different possibilities. On IIS, you can set the folder's
permission using Windows' security dialog. Once the user pays for the
file, you copy it to a non-protected folder and you allow access with a
hyperlink for a limited period of time. Or, you give the user a username
and password for that folder. Or you send the file per email. Many
possibilities.
You may be wondering why I want to even have the eBook on this Web Site
if users can't view it. Well, I want them to purchase this eBook from
my Web Site, and once they do, it will be forwarded to them via
software.

Understand? What do I need to do ?

Thanks so Much...
Greetings,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Sep 23 '06 #3
On the server you need to set the folder in question's properties to that
the files cannot be browsed. If it is a FrontPage web, this can be done from
FrontPage. Also perhaps your web host gives this feature in their online
server utilities.
<sa***********@yahoo.cawrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
>I have a Web Site that I'm interested in selling eBooks from. I'm
having a problem setting it up as I would like, and hope that someone
can help me out.

Inside my domain I have a folder called eBooks. Inside this folder I
have some eBooks, such as eggrecipes.pdf

If the user types in the URL <domain>/eBooks/eggrecipes.pdf the eBook
eggrecipes.pdf will appear in the browser.

I don't want this to happen. Instead, I would like for the browser to
say "access not available" or something like that. Anything, but for
the user to be able to see and view and download this pdf file by only
typing in the address in the URL.

I've turned "directory browsing" on my account to "off"...I thought
that would work, but I can still type in the URL, and see the eBook.

You may be wondering why I want to even have the eBook on this Web Site
if users can't view it. Well, I want them to purchase this eBook from
my Web Site, and once they do, it will be forwarded to them via
software.

Understand? What do I need to do ?

Thanks so Much...

Sep 23 '06 #4

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

Similar topics

8
by: newb_bee | last post by:
Hi, I'd like to know the best method(s) of ... protecting the download link ... it's location ...not having a new window pop up with the URL in it... I am aware there is no foolproof way (-: ...
4
by: Baz'noid | last post by:
Hi all, As the size of my database and the number of users grows, i've found a horrible bug in the system with a very simple solution (but i don't know how to implement it)... If two people...
3
by: Birthday | last post by:
Hi, I have started to learn C# nowadays and find some ebooks on the structure and the syntax of the c# language. All the examples in the ebooks that I've found are all about console...
3
by: bigskipster | last post by:
http://cooldogebooks.blogspot.com Submit your comments because I need them! Thank You. Prentice Hall | Microsoft Press | Algorithics | Nolo Press & Law |
0
by: Free Ebooks | last post by:
Free ebooks of MCTS Exams (70-431, 70-529, 70-528, 70-526, 70-536) http://free-tech-ebooks.blogspot.com/2007/02/download-free-ebook-of-mcts-exams-70.html 36 Microsoft Certification...
0
by: Free Ebooks | last post by:
81 AJAX and 24 JavaScript Ebooks Here are some of the AJAX topics and areas covered by these ebooks: Rails and AJAX Building Ajax Web Applications Creating Ajax Web Pages Ajax Patterns Ajax...
0
by: grazzy.cool | last post by:
Most People Will Wait a Lifetime and Never Be in the Right Place at the Right Time... http://smallbusinessebooks.googlepages.com/ http://smallbusiness-ebooks.blogspot.com/
2
by: brendan_gallagher_2001 | last post by:
HI I am developog an ASP.net site (using vb.net 1.1) which will be accessed by a number of different office locations, where certain users will be assigned a authoriser profile, and others will...
0
by: onlineshop | last post by:
It's very interesting and high-grade ebooks Please visit here: www.ebooks-tnt.ch
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.