PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   How Do I? - vBulletin 3.0.X (http://www.photopost.com/forum/how-do-i-vbulletin-3-0-x/)
-   -   Stopping linking on other sites (http://www.photopost.com/forum/how-do-i-vbulletin-3-0-x/117086-stopping-linking-other-sites.html)

Allen Mead December 19th, 2004 12:15 PM

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!

Jester December 19th, 2004 12:26 PM

Re: Stopping linking on other sites
 
Excellent question, I hope there is a solution for it.

rbl December 19th, 2004 12:36 PM

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.

Brian December 19th, 2004 12:37 PM

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.

ConqSoft December 19th, 2004 12:38 PM

Re: Stopping linking on other sites
 
You can do it with a .htaccess file.

ConqSoft December 19th, 2004 12:38 PM

Re: Stopping linking on other sites
 
Doh. He beat me to it. :D

Jester December 19th, 2004 12:53 PM

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?

ConqSoft December 19th, 2004 12:55 PM

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 December 19th, 2004 12:59 PM

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.)

Allen Mead December 19th, 2004 05:38 PM

Re: Stopping linking on other sites
 
That's fantastic guys! what's the extention for the file, is it .php or .html ?

Cheers.

ConqSoft December 19th, 2004 05:53 PM

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.

Allen Mead December 19th, 2004 06:06 PM

Re: Stopping linking on other sites
 
just worked it out, doh!

This is a good site http://www.htmlbasix.com/disablehotlinking.shtml

Brian December 20th, 2004 09:42 AM

Re: Stopping linking on other sites
 
Just an FYI, there will be an option in RC3 to take care of this for you. ;)

KW802 December 20th, 2004 10:30 AM

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 :p )

Brian December 20th, 2004 10:46 AM

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.

KW802 December 20th, 2004 10:49 AM

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! :p

:D

ConqSoft December 20th, 2004 10:51 AM

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.

Brian December 20th, 2004 10:57 AM

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.

ConqSoft December 20th, 2004 10:57 AM

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.

Da GoTTi August 28th, 2005 03:05 PM

Re: Stopping linking on other sites
 
this is a great tutorial. i understand it now. thanks guys.


All times are GMT -5. The time now is 03:07 AM.

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