Help - Search - Members - Calendar
Full Version: Best Ideas for setting up a photo gallery?
HTMLHelp Forums > Web Authoring > Web Site Functionality
nWo Sting
It has over 1,000 photos, I was looking for ideas on how to view the photos after you click on the thumbnail. I don't think I want to do the basic way which is just link the pic to the thumbnail so it brings up the URL in a new browser window (like www.mysite.com/images/pic-009.jpg). The reason I don't want to do that is to prevent people from direct linking to the pics. I know people can still view source to get the pic's URL, but this will at least scare away some of the people who can't do that. Anyway I was thinking of when you click the thumbnail, the pic shows up in a smaller window where you cannot see the URL. But then I thought about how most people use pop-up blocking nowadays which may block the little photo viewer from showing up. Anyone have any good ideas on how I should link to my photos? thanks
Darin McGrew
Perhaps one of these CGI image-indexing programs or one of these PHP image-indexing programs will meet your needs.

See also the FAQ entries How do I hide my URL? and How can I disable the browser's right-click options? How can I protect my source, images, etc. from being copied?
nWo Sting
so I guess there is no way to prevent people from direct linking to my pics from their own site? I use a code for hotlinking which stops people from hosting images and files from my site to their site, but what if someone had a link on their page and said "click here for this picture", and the picture was from my site because they linked the pic to (www.mysite.com/images/test-01.gif). I have seen a lot of sites where people have their own "photo gallery" but it is really just a bunch of links to direct pictures from other peoples websites (stealing bandwidth). I didn't see anything that stood out about direct linking in the FAQ. ****The site below gives an example,

http://www.obsessedwithwrestling.com/gallery/hulkhogan-f.php

See how he has smaller pics and when you click them for the larger pics it goes to:

http://www.obsessedwithwrestling.com/pictu...ulkhogan/40.jpg

Well is there anyway to stop someone from direct linking to that jpg image from their own website? Maybe just have it forward it to an error page on my site?
pandy
QUOTE
I use a code for hotlinking which stops people from hosting images and files from my site to their site


What code do you use? Hotlinking usually means the opposite. They they use the images on their site (with IMG tags) but leach them from your server.


QUOTE
but what if someone had a link on their page and said "click here for this picture"

You can't stop linking if you mean a direct link like so: <a href="http://www.obsessedwithwrestling.com/pictures/h/hulkhogan/40.jpg">...</a> . You can stop them from displaying the images on their own site though (<img src="http://www.obsessedwithwrestling.com/pictures/h/hulkhogan/40.jpg">). Is that what you want to do? Are you on an Apache server and can you use .htaccess files?
nWo Sting
QUOTE(pandy @ Apr 29 2008, 12:14 AM) *

QUOTE
I use a code for hotlinking which stops people from hosting images and files from my site to their site


What code do you use? Hotlinking usually means the opposite. They they use the images on their site (with IMG tags) but leach them from your server.


QUOTE
but what if someone had a link on their page and said "click here for this picture"

You can't stop linking if you mean a direct link like so: <a href="http://www.obsessedwithwrestling.com/pictures/h/hulkhogan/40.jpg">...</a> . You can stop them from displaying the images on their own site though (<img src="http://www.obsessedwithwrestling.com/pictures/h/hulkhogan/40.jpg">). Is that what you want to do? Are you on an Apache server and can you use .htaccess files?


I have .htaaccess and I use a code already that disables people from hosting my images on their site, it works great. I was just trying to see if there was a way to stop all the direct linking, but I figured there wasn't since I could not find much about it anywhere.
pandy
OK, we mean the same thing then I guess, we just express it diffrently. Not much more you can do.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.