Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello!
I have a personal static site written directly in HTML, say "mySite.free.fr". All the images are stored in an "images" folder.
How could I avoid people from being able to browse all the images stored in that folder by typing in the adress bar: http://mysite.free.fr/images
I need to keep this site pure HTML, but of course, I can add some javascript functions.
Thank you for your advices!
GigaByte 3D Aurora
Asus P5WDHDeluxe RAID 0
Intel Core 2 Duo E6700
2GB DDR2 Twin2X 800MHz
BFG nVidia 8800 GTS 512

Well, if you are just trying to prevent people from being able to "browse" that folder, just create a blank index.ht file and put it in that directory. then is anyone types the path to that folder they will just see a blank page (or better yet create a page that redirects to your home page).
However, if you are wanting to prevent people from hot-linking or directly navigating to specific image files, you would need a server-side language to do that.
Michael J

Thank you very much! I succeded to redirect to the site home page with a <meta> tag in an index.html.
GigaByte 3D Aurora
Asus P5WDHDeluxe RAID 0
Intel Core 2 Duo E6700
2GB DDR2 Twin2X 800MHz
BFG nVidia 8800 GTS 512

Hello
I've kinda wondered the same thing in the past so this topic helps me out too.
I have another question I'd like to stick in here. Is is possible to create a web page to list the contents of that folder? So if you go to the folder the blank or redirect page would show up, but if you go to indexhidden.htm for example it'd list the the contents of that directory.
I ask this since I broswe the directories of my website lots of the time but would like to protect them at the same time.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |