{"id":19,"date":"2008-09-04T19:35:43","date_gmt":"2008-09-04T18:35:43","guid":{"rendered":"http:\/\/www.withinweb.com\/info\/?p=19"},"modified":"2010-04-17T12:28:25","modified_gmt":"2010-04-17T12:28:25","slug":"how-do-i-protect-my-digital-files","status":"publish","type":"post","link":"https:\/\/www.withinweb.com\/info\/how-do-i-protect-my-digital-files\/","title":{"rendered":"How do I protect my digital files ?"},"content":{"rendered":"<p>If you are using an application like <a href=\"\/phpeseller\/\">PHP-eSeller<\/a> to sell digital files you need to make sure that your files are secure.<\/p>\n<p>The best way to protect digital files (those files that you are going to sell) is to place them outside the root of your web site.<\/p>\n<p>The root of the web site is normally the public_html folder or the www folder.<\/p>\n<p>When placed &#8216;below&#8217; these folders, it is not possible for anyone to get to those files using a web url address.<\/p>\n<p>However, some hosts do not allow this, so instead you can protect your files by placing an .htaccess file in the folder.<\/p>\n<p>An example .htaccess file which would do this is:<\/p>\n<p><code>IndexIgnore *<br \/>\nAuthGroupFile \/dev\/null<br \/>\nAuthName Downloads<br \/>\nAuthType Basic<\/code><\/p>\n<p><code>&lt;Limit GET POST PUT&gt;<br \/>\n\u00a0deny from all<br \/>\n&lt;\/Limit&gt;<\/code><\/p>\n<p>This will only work on a Linux type server and not on a Windows server.<br \/>\n<a href=\"http:\/\/www.javascriptkit.com\/howto\/htaccess.shtml\">http:\/\/www.javascriptkit.com\/howto\/htaccess.shtml<\/a> has quite a good set of examples and gives some good background information on htaccess \/ htpasswd files<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are using an application like PHP-eSeller to sell digital files you need to make sure that your files are secure. The best way to protect digital files (those files that you are going to sell) is to place<span class=\"ellipsis\">&hellip;<\/span><\/p>\n<div class=\"read-more\"><a href=\"https:\/\/www.withinweb.com\/info\/how-do-i-protect-my-digital-files\/\">Read more <span class=\"screen-reader-text\">How do I protect my digital files ?<\/span><span class=\"meta-nav\"> &#8250;<\/span><\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-php-eseller"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How do I protect my digital files ? - PHP Web Applications<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.withinweb.com\/info\/how-do-i-protect-my-digital-files\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How do I protect my digital files ? - PHP Web Applications\" \/>\n<meta property=\"og:description\" content=\"If you are using an application like PHP-eSeller to sell digital files you need to make sure that your files are secure. The best way to protect digital files (those files that you are going to sell) is to place&hellip;Read more How do I protect my digital files ? &#8250;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.withinweb.com\/info\/how-do-i-protect-my-digital-files\/\" \/>\n<meta property=\"og:site_name\" content=\"PHP Web Applications\" \/>\n<meta property=\"article:published_time\" content=\"2008-09-04T18:35:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2010-04-17T12:28:25+00:00\" \/>\n<meta name=\"author\" content=\"paulv\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"paulv\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/how-do-i-protect-my-digital-files\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/how-do-i-protect-my-digital-files\\\/\"},\"author\":{\"name\":\"paulv\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\"},\"headline\":\"How do I protect my digital files ?\",\"datePublished\":\"2008-09-04T18:35:43+00:00\",\"dateModified\":\"2010-04-17T12:28:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/how-do-i-protect-my-digital-files\\\/\"},\"wordCount\":162,\"commentCount\":0,\"articleSection\":[\"PHP-eSeller\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.withinweb.com\\\/info\\\/how-do-i-protect-my-digital-files\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/how-do-i-protect-my-digital-files\\\/\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/how-do-i-protect-my-digital-files\\\/\",\"name\":\"How do I protect my digital files ? - PHP Web Applications\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#website\"},\"datePublished\":\"2008-09-04T18:35:43+00:00\",\"dateModified\":\"2010-04-17T12:28:25+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/how-do-i-protect-my-digital-files\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.withinweb.com\\\/info\\\/how-do-i-protect-my-digital-files\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/how-do-i-protect-my-digital-files\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How do I protect my digital files ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#website\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/\",\"name\":\"PHP Web Applications\",\"description\":\"Information and support for products of WithinWeb.com\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\",\"name\":\"paulv\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/author\\\/paulv\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How do I protect my digital files ? - PHP Web Applications","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.withinweb.com\/info\/how-do-i-protect-my-digital-files\/","og_locale":"en_US","og_type":"article","og_title":"How do I protect my digital files ? - PHP Web Applications","og_description":"If you are using an application like PHP-eSeller to sell digital files you need to make sure that your files are secure. The best way to protect digital files (those files that you are going to sell) is to place&hellip;Read more How do I protect my digital files ? &#8250;","og_url":"https:\/\/www.withinweb.com\/info\/how-do-i-protect-my-digital-files\/","og_site_name":"PHP Web Applications","article_published_time":"2008-09-04T18:35:43+00:00","article_modified_time":"2010-04-17T12:28:25+00:00","author":"paulv","twitter_card":"summary_large_image","twitter_misc":{"Written by":"paulv","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.withinweb.com\/info\/how-do-i-protect-my-digital-files\/#article","isPartOf":{"@id":"https:\/\/www.withinweb.com\/info\/how-do-i-protect-my-digital-files\/"},"author":{"name":"paulv","@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c"},"headline":"How do I protect my digital files ?","datePublished":"2008-09-04T18:35:43+00:00","dateModified":"2010-04-17T12:28:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.withinweb.com\/info\/how-do-i-protect-my-digital-files\/"},"wordCount":162,"commentCount":0,"articleSection":["PHP-eSeller"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.withinweb.com\/info\/how-do-i-protect-my-digital-files\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.withinweb.com\/info\/how-do-i-protect-my-digital-files\/","url":"https:\/\/www.withinweb.com\/info\/how-do-i-protect-my-digital-files\/","name":"How do I protect my digital files ? - PHP Web Applications","isPartOf":{"@id":"https:\/\/www.withinweb.com\/info\/#website"},"datePublished":"2008-09-04T18:35:43+00:00","dateModified":"2010-04-17T12:28:25+00:00","author":{"@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c"},"breadcrumb":{"@id":"https:\/\/www.withinweb.com\/info\/how-do-i-protect-my-digital-files\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.withinweb.com\/info\/how-do-i-protect-my-digital-files\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.withinweb.com\/info\/how-do-i-protect-my-digital-files\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.withinweb.com\/info\/"},{"@type":"ListItem","position":2,"name":"How do I protect my digital files ?"}]},{"@type":"WebSite","@id":"https:\/\/www.withinweb.com\/info\/#website","url":"https:\/\/www.withinweb.com\/info\/","name":"PHP Web Applications","description":"Information and support for products of WithinWeb.com","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.withinweb.com\/info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c","name":"paulv","url":"https:\/\/www.withinweb.com\/info\/author\/paulv\/"}]}},"_links":{"self":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":1,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":532,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/19\/revisions\/532"}],"wp:attachment":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}