restrict direct access to gallery folder

astalavistabd

Joined: 2005-11-15
Posts: 2
Posted: Tue, 2005-11-15 03:03

hi,

im using gallery for almost 1 year inside phpnuke. My gallery version is 1.4.4 pl4, phpnuke 7.7, php 2.4. I was wondering, can i restrict users/search engines to directly access to my gallery folder(http://www.mydomain.com/modules/gallery/)? I tried to use .htaccess but i end up with broken image links. What other options do i have?

PS: Gallery is working fine inside my phpnuke (http://www.mydomain.com/gallery.html)

Thanks

 
astalavistabd

Joined: 2005-11-15
Posts: 2
Posted: Fri, 2005-11-18 15:47

n/m, i fig. it out. I guess this is not the right forum for it. :)
I had to call some common nuke code in the header of the index.php(modules/gallery/) file. Its working fine now.

http://phpnuke-downloads.com/gallery.html

 
mystic_jay

Joined: 2009-05-22
Posts: 1
Posted: Fri, 2009-05-22 17:21

After couple of hours of reading on .htaccess for apache in windows - I finally figured out - You need to set the open_basedir directive in your php.ini file to restrict access to file system beyond the web folder. Considering it took my good amount of searching I added couple of articles on PHP security that applies for windows here:

http://oviya.me

It is also a good idea to turn off errors and phpinfo function as well.