Ok, I want to stop leechers from dowloading files from my website. I want it to restrict people from viewing folders, but it would still allow them to download if they have the specific address to the file. Ex http://yourwebsite.com/files/ would be restricted, but http://yourwebsite.com/files/picture.jpg would not be restricted.
Thanks!
Stop Leechers
- hakkuo23
- This is my homepage
- Posts: 88
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Thu Aug 05, 2010 5:04 pm
Re: Stop Leechers
The easiest way to do this would be to create a blank index.html file in the folder. You could also use the .htaccess file to remove Indexes.
Re: Stop Leechers
Sorry I hit 'New Topic.'
How can I do that without putting an index.html into every folder since I have hundreds?
How can I do that without putting an index.html into every folder since I have hundreds?
Re: Stop Leechers
Create an .htaccess file in the parent folder of those, containing the following:
Code: Select all
Options -Indexes
Re: Stop Leechers
Thank you it worked perfectly.
I also added a custom 403 error message, so this is what the .htaccess file looks like if anyone else has the same problem as I do:
Thank you!
I also added a custom 403 error message, so this is what the .htaccess file looks like if anyone else has the same problem as I do:
Code: Select all
Options -Indexes
ErrorDocument 403 http://xxx/index.php