473,666 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

securing digital ebooks from online piracy

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 (-:

What are my _best_ options for getting paid for my products before the
purchaser gets sent to the page? I am selling downloadable ebooks
(yes, our own, not somebody else's). I use PaySystems if that matters
so I have options there, but am most concerned with the file folder
full of product.

anything I'm missing?

thanks very much.
newb_bee
Jul 20 '05 #1
8 1769
Hello,

Afaik, you can use serverside scripting such as PHP, as:

<?
// do validation here
.....
// output the header here using Header()
.....

// output the ebook data here (and download will be started if you outputted
correct header previously)
readfile('ebook 1.pdf');
?>

Regards,
Elias
Jul 20 '05 #2
In article <71************ **************@ posting.google. com>, newb_bee wrote:
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 (-:

What are my _best_ options for getting paid for my products before the
purchaser gets sent to the page? I am selling downloadable ebooks
(yes, our own, not somebody else's). I use PaySystems if that matters
so I have options there, but am most concerned with the file folder
full of product.


The best way is not to put the ebooks online directly.

Send them (via script) by email to your customer.

--
Marco Dieckhoff
icq# 22243433
GPG Key 0x1A6C95BA -- http://www.frankonia-brunonia.de/keys
Jul 20 '05 #3

Thanks Marco,
That's certainly an option, but since the books are digitally secured,
they end up an .exe file, as a self extracting application, which most
people do not want to receive via email because of virus threats (not
that these have them). They are also 650 kb to 2M.

Can I have send a link to a hidden location that "expires" after a
period of time? Or set up a script that assigns a password automatically
on payment to login to a private area?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 20 '05 #4
"lallous" <la*****@lgwm.o rg> wrote in message news:<bg******* *****@ID-161723.news.uni-berlin.de>...
you can use serverside scripting such as PHP, as:

<?
// do validation here
....
// output the header here using Header()
....

// output the ebook data here (and download will be started if you outputted
correct header previously)
readfile('ebook 1.pdf');
?>

Regards,
Elias


Elias,
thanks, looks good ... except I really AM a newbie, would you be
willing to flesh this out some for me? Or point me to where I can find
out how to put in all the variables?
Cheers,
Sandra
Jul 20 '05 #5
newb_bee wrote:

<snip>


Elias,
thanks, looks good ... except I really AM a newbie, would you be
willing to flesh this out some for me? Or point me to where I can find
out how to put in all the variables?
Cheers,
Sandra


I don't mean to sound nasty, but since you're doing this as a part of a
business, do you expect people to write it for free for you?
Jul 20 '05 #6
In comp.lang.misc newb_bee <sa****@delfin. org> wrote:
: <I am selling downloadable ebooks>
: What are my _best_ options for getting paid for my products before the
: purchaser gets sent to the page?

Don't write it until they've paid you.

-Greg
Jul 20 '05 #7
Hi,

Markus Ernst wrote:
That's certainly an option, but since the books are digitally secured,
they end up an .exe file, as a self extracting application, which most
people do not want to receive via email because of virus threats (not
that these have them). They are also 650 kb to 2M.

Don't you have the same problem with a downloadable file?


I can see why the user could prefer to receive the file as a
downloadable EXE rather than as attachment of an email. I am not so much
afraid of virus, having a good protection, but the size of the
attachment is rather a problem to me. I prefer to download such things
from the web rather than with my emails.
Can I have send a link to a hidden location that "expires" after a
period of time? Or set up a script that assigns a password automatically
on payment to login to a private area?

With serverside scripting as PHP you could maybe assign the transaction a
random session value, open the file and save it as a copy with the random
value as filename, and then provide the link to that file for download. Make
sure you delete it afterwards. I'm sure it would be a nice challenge to
develop this application.


I don't know PHP, but it wouldn't be a big challenge in ASP.

Laurent
--
Laurent Bugnion, GalaSoft
Webdesign, Java, javascript: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch

Jul 20 '05 #8

"lallous" <la*****@lgwm.o rg> wrote in message
news:bg******** ****@ID-161723.news.uni-berlin.de...
Hello,

Afaik, you can use serverside scripting such as PHP, as:

<?
// do validation here
....
// output the header here using Header()
....

Use the correct content-type here in the header, or the browser will get
confused.
Look at "mime_content_t ype" for detecting mime types on random files, or if
you have a set file format you know in advance...

Quoting PHP 4.3.0 manual: ( HTTP Functions / header ):

<?php
// We'll be outputting a PDF
header("Content-type: application/pdf");

// It will be called downloaded.pdf
header("Content-Disposition: attachment; filename=downlo aded.pdf");

// The PDF source is in original.pdf
readfile('origi nal.pdf');
?>

for example for pdf (as in example below)

Remember, readfile() reads a file and prints to the output buffer (i.e. your
browser)

// output the ebook data here (and download will be started if you outputted correct header previously)
readfile('ebook 1.pdf');
If possible, try to store the pdf outside your servers document root, this
will prevent people trying to guess the url and dl directly

Thanks,
Mark
---------------------------------------------------------------------------
Windows, Linux and Internet Development Consultant
Email: co*******@scrip tsmiths.com
Web: http://www.scriptsmiths.com
---------------------------------------------------------------------------
?>

Regards,
Elias

Jul 20 '05 #9

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

Similar topics

5
2234
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 (-: What are my _best_ options for getting paid for my products before the purchaser gets sent to the page? I am selling downloadable ebooks (yes, our own, not somebody else's). I use PaySystems if that matters so I have options there, but am most...
2
1604
by: James | last post by:
What's the best way of securing online databases and web services? At present I am using a database password, which of course is not hard-coded into the web service, but this means re-submitting it with every function call from my windows client. Any alternatives?
0
1388
by: libreria ledi international bookseller | last post by:
BIBLIOTECA DIGITALE THE ITALIAN EBOOK PLATFORM FOR LIBRARIES Libraries’ users ask for more and more accessible information and for even more complete and updated catalogues. The Italian language is spreading all over the world and expecially in the United States where more and more students study Italian as a second language and they require information for opening up new horizons to a different culture. Libuk, an Italian pioneer firm...
11
3424
by: Wm. Scott Miller | last post by:
Hello all! We are building applications here and have hashing algorithms to secure secrets (e.g passwords) by producing one way hashes. Now, I've read alot and I've followed most of the advice that made sense. One comment I've seen alot about is "securing the hashing routine" but no-one explains how to accomplish this. So how do I secure my hashing routine? Do I use code access security, role based security, ACLs, etc or combination?...
2
3668
by: Martin Høst Normark | last post by:
Hi everyone Has anyone got the least experience in integrating the Digital Signature with an ASP.NET Web Application? Here in Denmark, as I supose in many other countries, they're promoting the digital signature. A lot of people already has one, to do their taxes, and much more. I have to use for a business-to-business e-commerce solution, where it's vital that the right user is being logged on, and not give his username and password...
6
11552
by: Matt Frame | last post by:
I have a client that has asked us to get a digital signature certificate and start digitally signing all files we pass between each other. I have heard of the subject and know about the certs but I have no idea how to do something like this with VB.Net. Has anyone done something like this or know where I can find out information how to perform the process of signing a document when sending it then checking one on receipt? Your help is...
3
1637
by: samadams_2006 | last post by:
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.
0
1803
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 Tutorials and Free Practice Exams http://free-tech-ebooks.blogspot.com/2007/01/36-microsoft-certification-tutorials_19.html
0
2344
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 Tutorial Ajax Best Practices Ajax XMLHttpRequest and Struts
0
8440
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8352
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8863
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8549
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7378
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6189
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4358
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2005
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.