PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old March 12th, 2006, 02:21 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2005
Location: Puerto Rico
Posts: 22
Send a message via MSN to pulsorock
.htaccess Anti-leeching help

Hello...
I just edited the .htaccess file via PhotoPost Pro Admin and added the following lines:
Code:
Content visible to verified customers only.
But if I try hotlinking an image from another site, it shows it anyway. How can I know if I have the right setting in my apache conf in order that the anti-leeching works correctly?

See this image that is located in my PhotoPost folder:

Code:
Content visible to verified customers only.
pulsorock is offline   Reply With Quote
Old March 12th, 2006, 02:22 PM   #2 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2005
Location: Puerto Rico
Posts: 22
Send a message via MSN to pulsorock
I also tried this one with no success...

Code:
Content visible to verified customers only.
pulsorock is offline   Reply With Quote
Old March 12th, 2006, 03:17 PM   #3 (permalink)
Registered User
Verified Customer
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,243
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
Here is some info that may help.

This is the full listing of Apache directives.
This is the information for ReWrite Rule.
This will explain the quantifiers for ? * + used infront of the ReWrite Rule.


Insert the following code into your htaccess

Leachers will just get a "X" instead of an image.

Code:
Content visible to verified customers only.
Note: The first line is only necessary if this is not being used along with Sub Domains. If you are using Sub Domains, do not add the first line and insert the other 3 lines underneath the Sub Domain coding.

If you have another domain you can insert the following underneath line 3:
Code:
Content visible to verified customers only.
Upload the .htaccess file via FTP in ASCII mode and place in the htdocs folder.

Other web sites will now not be able to leech any images from your site. Enjoy!

Image Return
If you wish to return an image, stating they're not permitted to access your images, modify this line:
Code:
Content visible to verified customers only.
to these lines:
Code:
Content visible to verified customers only.
#note, do not need capitallized alternates unless you have them on your server.

You can use most extensions, such as:
Code:
Content visible to verified customers only.
Sub Domains

If anti-leeching is used along with sub domains, you'll need to create a .htaccess for each sub domain with the following code for protecting your images:
Code:
Content visible to verified customers only.
If you have many subdomains, you can use this code:
Code:
Content visible to verified customers only.
Upload the .htaccess file via FTP in ASCII mode and place in the htdocs folder.

Other web sites will now not be able to leech any images from your site. Enjoy!

Note:
At the end of these codes.
Code:
Content visible to verified customers only.
You will see the different functions or CondPattern These tell Apache what to return.
  • [R] = Redirect the request to a new file. In this case it is going to return the hotlink.jpg
  • [L] = Stops the ReWrite process
  • [F] = Returns a Forbidden code 403, thus the little "x" from anyone trying to leach.
  • [NC] = no case
  • [OR] = switches to the next ReWrite Condition
Zachariah is offline   Reply With Quote
Old March 28th, 2006, 11:57 PM   #4 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2005
Location: Puerto Rico
Posts: 22
Send a message via MSN to pulsorock
Thanks Zach... that worked fine
pulsorock is offline   Reply With Quote
Old March 29th, 2006, 12:19 AM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2005
Location: Puerto Rico
Posts: 22
Send a message via MSN to pulsorock
Is there a way that for example if I type the URL of the picture directly, no hot-linking, just typing the direct URL of the picture on the address bar, that the picture appears instead of the anti-leech image?

For example, right now, if you type this URL in the address bar, you will get the ant-leech image:
http://www.pulsorock.com/profile/data/2/miranda1.jpg

What I want to prevent is others linking to it directly via the IMG tag in another site. But if a user wants to see his picture by directly typing the URL that he is allowed to do so.

Thanks!
pulsorock is offline   Reply With Quote
Old March 29th, 2006, 10:16 PM   #6 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2005
Location: Puerto Rico
Posts: 22
Send a message via MSN to pulsorock
I just got some complaints from some users that appear that they have HTTP Referrers disabled via a Firewall or something, that they can't see the pictures after I added the anti-leech code. Is there a way to set that if the image called has no refer, it shows it anyway?

My current .htaccess files is as follows
Code:
Content visible to verified customers only.
pulsorock is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I add anti-caching code in header nnowakow Photopost Pro How Do I...? 7 October 22nd, 2005 04:58 PM
Anti-leech for windows servers Bap General Discussion 2 May 20th, 2005 11:59 AM
.htaccess oldengine Bugs From 1.0.0 2 February 14th, 2005 10:03 AM
Anti-Leeching Code meko72 Photopost Pro Installation & Upgrades 2 February 9th, 2005 07:50 PM


All times are GMT -5. The time now is 08:14 AM.

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