Author Topic: Block access do folder with all the images  (Read 7055 times)

0 Members and 1 Guest are viewing this topic.

Offline son_gokou

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Block access do folder with all the images
« on: May 02, 2007, 12:50:30 AM »
Anyone knows how to block access into the folder where the images are?

For example http://yoururl/./data/media/1/

Anyone can download all the images at once and that's not good. I donīt know a way how to do this. And you?

Offline om6acw

  • Full Member
  • ***
  • Posts: 187
    • View Profile
    • My Animal's World
Re: Block access do folder with all the images
« Reply #1 on: May 02, 2007, 01:21:22 AM »
protect the folder with password, put .htaccess in every folder

Offline son_gokou

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: Block access do folder with all the images
« Reply #2 on: May 02, 2007, 01:28:14 AM »
Do you know what should i put on .htaccess?
If not I will search for it.

Thanks for your help

Offline son_gokou

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: Block access do folder with all the images
« Reply #3 on: May 02, 2007, 03:45:46 AM »
Ok... but if I do that the users canīt see the images either.

Offline om6acw

  • Full Member
  • ***
  • Posts: 187
    • View Profile
    • My Animal's World
Re: Block access do folder with all the images
« Reply #4 on: May 02, 2007, 04:52:55 AM »
Do you know what should i put on .htaccess?
If not I will search for it.

Thanks for your help

I dont know what need to be in . htaccess I was using Cpanel for that, this protection is for direct entry to this folder, if script call some media file, browser will show them.

Offline son_gokou

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: Block access do folder with all the images
« Reply #5 on: May 02, 2007, 02:38:18 PM »
I have that on cpanel too, but if I block access the images will not show...

Offline om6acw

  • Full Member
  • ***
  • Posts: 187
    • View Profile
    • My Animal's World
Re: Block access do folder with all the images
« Reply #6 on: May 03, 2007, 01:07:33 AM »
I have that on cpanel too, but if I block access the images will not show...

Hmm, thats interesting because I use that on my gallery, also I have instaled this V@no's mod http://www.4homepages.de/forum/index.php?topic=6997.msg30703#msg30703

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: Block access do folder with all the images
« Reply #7 on: May 03, 2007, 07:49:07 AM »
another way to do it would be to add a blank index.html page in the folder. This way when someone tries to enter directly to the folder they will get a blank page. If not a blank page then put a page with a forwarder in the meta tag to go back to your gallery home page.

Also with cPanel you can use the HotLink Protection along with V@no's mod.

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: Block access do folder with all the images
« Reply #8 on: May 03, 2007, 07:51:57 AM »
I have that on cpanel too, but if I block access the images will not show...
For cPanel:
Dont use the index manager as that turns indexes off. If indexes are off, people will not be able to see what files are in a directory that lacks an index file.

You need to use the Web Protect.