473,387 Members | 1,575 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,387 software developers and data experts.

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 1750
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('ebook1.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.org> 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('ebook1.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.org> 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_type" 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=downloaded.pdf");

// The PDF source is in original.pdf
readfile('original.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('ebook1.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*******@scriptsmiths.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
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 (-: ...
2
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...
0
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...
11
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...
2
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...
6
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...
3
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...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
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...

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.