A little Ideea to help you out A little Ideea to help you out
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

A little Ideea to help you out

Started by Infernal, December 07, 2007, 02:45:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Infernal

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

Joachim Müller

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.

Infernal

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

Joachim Müller

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.

Infernal

mhm ok
then that should all be very ok even for such a host