Alright, so I am designing an ebook that is based on the content of one of my sites, I intend to make a user-friendly notebook-style ebook that users can download for maybe $5, print, and then use in their own binders as a guide and place to put their notes on the subject. Now I know Ill be using a combo of html/php to make the page, but how do you go about protecting the Ebook so that someone cant just put in the download link and get it for free?? Also, how do you make the Ebook available for people to download? would I need to use my ftp account? (Ive never put files on there for someone else to download so I dont know how to ...) Thanks for any help/direction... and if this has been answered already please direct me to a relevant thread as I could not find any when I searched the forum... Thanks!!
After someone downloads it they can still upload it and share with anyone they want, keep that in mind too
Use something like $fname = '/home/iant/not_in_web_path/asdfjkl.pdf'; header("Cache-Control: no-cache, must-revalidate"); header("Content-Type: application/force-download"); header("Content-Type: application/octet-stream"); header("Content-Type: application/download"); header("Content-Length: ".filesize($fname)); header("Content-Disposition: attachment; filename=\"".basename($fname)."\""); readfile("$fname"); PHP: after checking that user is authenticated
that kinda confuses me... what does that do?? (im really new to php... so I dont know most of the intricacies yet) Thanks for the reply!