Skip to content

Commit

Permalink
Added note to security conscious people
Browse files Browse the repository at this point in the history
Advised the very paranoid to move ai-cache outside of web-root.
  • Loading branch information
MattWilcox committed Dec 4, 2011
1 parent acd24b7 commit 1f16b53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions instructions.htm
Expand Up @@ -29,6 +29,7 @@ <h2>Basic instructions</h2>
It will send higher-resolution images to such devices - be aware this will mean slower downloads for users.</p>
<pre><code>&lt;script&gt;document.cookie='resolution='+(Math.max(screen.width,screen.height)*("devicePixelRatio" in window ? devicePixelRatio : 1))+'; path=/';&lt;/script&gt;</code></pre>
<p>NOTE 2: you do not need the <code>ai-cookie.php</code> file unless you are using the <a href="#alternate">alternate method</a> of detecting the users screen size. So delete it if you like, no one likes mess.</p>
<p>NOTE 3: If you are extra paranoid about security you can have the ai-cache directory sit outside of your web-root so it's not publicly accessible. Just set the paths properly in the .htaccess file and the .php file.</p>

<h2>You already have a .htaccess file</h2>
<p>I strongly advise you to duplicate that file so you can revert to it if things go pear-shaped.</p>
Expand Down

0 comments on commit 1f16b53

Please sign in to comment.