PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old December 19th, 2004, 12:15 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Location: United Kingdom
Posts: 125
Stopping linking on other sites

Is there anyway I can stop people from linking to pics uploaded onto my site on other forums etc?

Especially as I can't afford endless amounts of bandwidth.

Thanks in advance!
Allen Mead is offline   Reply With Quote
Old December 19th, 2004, 12:26 PM   #2 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 60
Re: Stopping linking on other sites

Excellent question, I hope there is a solution for it.
Jester is offline   Reply With Quote
Old December 19th, 2004, 12:36 PM   #3 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
Re: Stopping linking on other sites

Putting links to your photos is one thing, using photos hosted on your website is another.
Either way the solution is similar. Just search google for stop (or disable) hotlink.
rbl is offline   Reply With Quote
Old December 19th, 2004, 12:37 PM   #4 (permalink)
Brian
Guest
 
Posts: n/a
Re: Stopping linking on other sites

The best way would probably be to use a .htaccess file to block people from linking any images from your server.
  Reply With Quote
Old December 19th, 2004, 12:38 PM   #5 (permalink)
Ultimate Member
Verified Customer
 
ConqSoft's Avatar
 
Join Date: Nov 2003
Location: Raleigh, NC
Posts: 1,413
Re: Stopping linking on other sites

You can do it with a .htaccess file.
ConqSoft is offline   Reply With Quote
Old December 19th, 2004, 12:38 PM   #6 (permalink)
Ultimate Member
Verified Customer
 
ConqSoft's Avatar
 
Join Date: Nov 2003
Location: Raleigh, NC
Posts: 1,413
Re: Stopping linking on other sites

Doh. He beat me to it.
ConqSoft is offline   Reply With Quote
Old December 19th, 2004, 12:53 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 60
Re: Stopping linking on other sites

Quote:
Originally Posted by Brian
The best way would probably be to use a .htaccess file to block people from linking any images from your server.
Brian (or anybody) what would you place in your .htaccess file to stop file linking?
Jester is offline   Reply With Quote
Old December 19th, 2004, 12:55 PM   #8 (permalink)
Ultimate Member
Verified Customer
 
ConqSoft's Avatar
 
Join Date: Nov 2003
Location: Raleigh, NC
Posts: 1,413
Re: Stopping linking on other sites

Here's the section from my .htaccess. Put it in the root of your site, and it should stop anyone from linking to any file on your site.

You'll see that I have several domains pointed to my site, so I have those listed so that they will be able to show the images while browsing the site under any of those domain names.

I also have to list the name of the "alternate" image, so that it can be displayed.

Your mileage will vary, but this should give you a start...


Code:
Content visible to verified customers only.
If you try to link to any image on my site, you should get:

Code:
Content visible to verified customers only.
ConqSoft is offline   Reply With Quote
Old December 19th, 2004, 12:59 PM   #9 (permalink)
Ultimate Member
Verified Customer
 
ConqSoft's Avatar
 
Join Date: Nov 2003
Location: Raleigh, NC
Posts: 1,413
Re: Stopping linking on other sites

(That space in the list of extensions, inside the WAV, shouldn't be there. Something about the code displayer I guess.)
ConqSoft is offline   Reply With Quote
Old December 19th, 2004, 05:38 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Location: United Kingdom
Posts: 125
Re: Stopping linking on other sites

That's fantastic guys! what's the extention for the file, is it .php or .html ?

Cheers.
Allen Mead is offline   Reply With Quote
Old December 19th, 2004, 05:53 PM   #11 (permalink)
Ultimate Member
Verified Customer
 
ConqSoft's Avatar
 
Join Date: Nov 2003
Location: Raleigh, NC
Posts: 1,413
Re: Stopping linking on other sites

It has to be called .htaccess

And mine is on Apache. The commands may differ for IIS, and your host has to allow the RewriteEngine.
ConqSoft is offline   Reply With Quote
Old December 19th, 2004, 06:06 PM   #12 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Location: United Kingdom
Posts: 125
Re: Stopping linking on other sites

just worked it out, doh!

This is a good site http://www.htmlbasix.com/disablehotlinking.shtml
Allen Mead is offline   Reply With Quote
Old December 20th, 2004, 09:42 AM   #13 (permalink)
Brian
Guest
 
Posts: n/a
Re: Stopping linking on other sites

Just an FYI, there will be an option in RC3 to take care of this for you.
  Reply With Quote
Old December 20th, 2004, 10:30 AM   #14 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,400
Re: Stopping linking on other sites

Quote:
Originally Posted by Brian
Just an FYI, there will be an option in RC3 to take care of this for you.
By category or site-wide?

(crosses fingers that the answer will be by category even though I know the new file structure makes that a tad difficult )
KW802 is offline   Reply With Quote
Old December 20th, 2004, 10:46 AM   #15 (permalink)
Brian
Guest
 
Posts: n/a
Re: Stopping linking on other sites

If it was even possible by category then it would be very difficult at the least. It will just be a setting that will create the .htaccess script for you and place it in your /gallery/files folder. Nothing too fancy, but should get the job done and is as easy as changing a setting.
  Reply With Quote
Old December 20th, 2004, 10:49 AM   #16 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,400
Re: Stopping linking on other sites

Quote:
Originally Posted by Brian
If it was even possible by category then it would be very difficult at the least. It will just be a setting that will create the .htaccess script for you and place it in your /gallery/files folder. Nothing too fancy, but should get the job done and is as easy as changing a setting.
Can't blame a guy for trying!

KW802 is offline   Reply With Quote
Old December 20th, 2004, 10:51 AM   #17 (permalink)
Ultimate Member
Verified Customer
 
ConqSoft's Avatar
 
Join Date: Nov 2003
Location: Raleigh, NC
Posts: 1,413
Re: Stopping linking on other sites

If it had the option of storing the images in a directory outside the web root (like I do with my vBulletin attachments), and used a script to serve up the images, that would take care of it, because then you could handle it all with permissions.
ConqSoft is offline   Reply With Quote
Old December 20th, 2004, 10:57 AM   #18 (permalink)
Brian
Guest
 
Posts: n/a
Re: Stopping linking on other sites

Quote:
Originally Posted by ConqSoft
If it had the option of storing the images in a directory outside the web root (like I do with my vBulletin attachments), and used a script to serve up the images, that would take care of it, because then you could handle it all with permissions.
The only problem with that is you would then have to store your images/thumbails in different folders, or use that same script to display the thumbnails, which would add a good 5-7 queries to the page for each thumbnail.
  Reply With Quote
Old December 20th, 2004, 10:57 AM   #19 (permalink)
Ultimate Member
Verified Customer
 
ConqSoft's Avatar
 
Join Date: Nov 2003
Location: Raleigh, NC
Posts: 1,413
Re: Stopping linking on other sites

Quote:
Originally Posted by Brian
The only problem with that is you would then have to store your images/thumbails in different folders, or use that same script to display the thumbnails, which would add a good 5-7 queries to the page for each thumbnail.
True.
ConqSoft is offline   Reply With Quote
Old August 28th, 2005, 03:05 PM   #20 (permalink)
Member
 
Join Date: Feb 2005
Posts: 111
Re: Stopping linking on other sites

this is a great tutorial. i understand it now. thanks guys.
Da GoTTi 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
New Sites In Action area! Michael P General Discussion 36 April 19th, 2013 03:43 PM
Upgrading 2 sites to PhotoPost5 Medar Before You Buy 5 March 30th, 2005 09:05 AM
Photopost Powered Sites kall Photopost Pro How Do I...? 1 February 3rd, 2005 09:36 AM
Reviewpost Sites iKwak Before You Buy 1 August 26th, 2004 08:39 PM


All times are GMT -5. The time now is 01:38 PM.

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