coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Infernal on December 07, 2007, 02:45:25 PM

Title: A little Ideea to help you out
Post by: Infernal on December 07, 2007, 02:45:25 PM
Hello coppermine staff I have a small idea i want to share with you that has helped me out a bit and that i think will be a bit useful
Preventing access to folders like album folders so that people can't steal pictures like that
I just write an index.html that has a redirect in it like so :
<html>
<head>
<Title>No access to directory!</title>
<meta
http-equiv="refresh" content="2; url=http://www.add-fun.com">
</head>
<body>
<h1>REDIRECTING</h1>
<h1>You do not have access here<h1><br>

</body>
</html>



Well it's simple and useful....
Title: Re: A little Ideea to help you out
Post by: Joachim Müller on December 07, 2007, 07:38:43 PM
Thanks for your readiness to share your insight. However, even better (and recommended) is to turn off indexes in the first place. If you're on an apache webserver you can do so using a .htaccess file - details can be found all over the net, e.g. http://www.aota.net/htaccess/index.php4
The lineOptions -Indexesin your .htaccess file will do the trick.
Title: Re: A little Ideea to help you out
Post by: Infernal on December 09, 2007, 09:41:25 PM
oh yes that is very true but true also is that some web hosts like 110mb charge 10$ one time payment for db access and another 5 for htaces usage :D:D
for poor sorry mofos like me this is a good solution
Title: Re: A little Ideea to help you out
Post by: Joachim Müller on December 10, 2007, 07:59:19 AM
If they charge you for being allowed to customize the .htaccess page, then indexes should be turned off by default on their servers. Request them to do this for you if you're not ready to spend the additional 5 bucks. If they refuse I suggest finding another webhost. Indexes off should be default on decent webhosting for security reasons. You're welcome to refer to this thread when filing your request at 110mb.
Title: Re: A little Ideea to help you out
Post by: Infernal on December 10, 2007, 12:56:51 PM
mhm ok
then that should all be very ok even for such a host