 | |  | |
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!
|
| |
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.
|
| |
December 19th, 2004, 12:36 PM
|
#3 (permalink)
| | Senior Member Verified Customer
Join Date: Aug 2003 Location: Portugal
Posts: 492
| 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.
|
| |
December 19th, 2004, 12:37 PM
|
#4 (permalink)
| | Guest | 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.
| |
| |
December 19th, 2004, 12:38 PM
|
#5 (permalink)
| | Ultimate Member Verified Customer
Join Date: Nov 2003 Location: Raleigh, NC
Posts: 1,413
| Re: Stopping linking on other sites
You can do it with a .htaccess file.
|
| |
December 19th, 2004, 12:38 PM
|
#6 (permalink)
| | Ultimate Member Verified Customer
Join Date: Nov 2003 Location: Raleigh, NC
Posts: 1,413
| Re: Stopping linking on other sites
Doh. He beat me to it. |
| |
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?
|
| |
December 19th, 2004, 12:55 PM
|
#8 (permalink)
| | Ultimate Member Verified Customer
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.
|
| |
December 19th, 2004, 12:59 PM
|
#9 (permalink)
| | Ultimate Member Verified Customer
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.)
|
| |
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.
|
| |
December 19th, 2004, 05:53 PM
|
#11 (permalink)
| | Ultimate Member Verified Customer
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.
|
| |
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 |
| |
December 20th, 2004, 09:42 AM
|
#13 (permalink)
| | Guest | Re: Stopping linking on other sites
Just an FYI, there will be an option in RC3 to take care of this for you. | |
| |
December 20th, 2004, 10:30 AM
|
#14 (permalink)
| | Registered User Verified Customer
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  )
|
| |
December 20th, 2004, 10:46 AM
|
#15 (permalink)
| | Guest | 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.
| |
| |
December 20th, 2004, 10:49 AM
|
#16 (permalink)
| | Registered User Verified Customer
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! |
| |
December 20th, 2004, 10:51 AM
|
#17 (permalink)
| | Ultimate Member Verified Customer
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.
|
| |
December 20th, 2004, 10:57 AM
|
#18 (permalink)
| | Guest | 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.
| |
| |
December 20th, 2004, 10:57 AM
|
#19 (permalink)
| | Ultimate Member Verified Customer
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.
|
| |
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.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 01:38 PM. | |