PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Edit data .htaccess or fullsized .htaccess? (http://www.photopost.com/forum/photopost-pro-how-do-i/129109-edit-data-htaccess-fullsized-htaccess.html)

ncangler December 1st, 2006 06:37 PM

Edit data .htaccess or fullsized .htaccess?
 
In the Photopost Important Tips the instructions below are giving. Question though, do I edit the data .htaccess or the fullsized .htaccess from within the Photopost Admin?
Quote:

2.) Prevent Bandwidth Stealing

Often times users will embed links to images within html pages or forum posts on other sites, which causes your server to use up bandwidth delivering their images to every visitor to that forum or HTML page where the user embedded the image. To prevent that, here's one implementation.

If your server supports .htaccess files, create a file called .htaccess in your PhotoPost 'data' directory and put the following in it:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*YOUR DOMAIN* [NC]
RewriteRule /* http://%{HTTP_HOST}/Your PhotoPost directory/index.php [R,L]
Change "YOUR DOMAIN" to your website's domain name. For TechIMO.com, that line would read: RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*techimo.com* [NC]
Change "Your PhotoPost directory" to the name of your photopost directory. For example, TechIMO.com's installation of PhotoPost is accessible via http://www.techimo.com/photo/index.php, so for us that line would read:

RewriteRule /* http://%{HTTP_HOST}/photo/index.php [R,L]

If you get a server error, check and make sure that your web host supports the RewriteEngine.

Michael P December 1st, 2006 06:49 PM

You would modify the data .htaccess; the other .htaccess is if you store your fullsize dimages in a different location from the default.


All times are GMT -5. The time now is 03:24 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97