What permissions should I use on images directory?

by AndresXZ09 - 29-04-2015, 11:43 PM
Closed Account
Posts:
1,382
Joined:
Jan 2015
Likes:
125
Credits:
1,388
Reputation:
30
3 Years of Service
#1
OP
Posted: 29-04-2015, 11:43 PM
Hello

I have seen some sites that when you go to their images directory it doesn't show the content, instead of that, it shows a custom message like "You cann't see the content of this directory"

Anyone knows how is that possible?

Thank you :yus:
monkaS
Posts:
6,344
Joined:
Jan 2015
Likes:
1,795
Credits:
5,301
Reputation:
275
3 Years of Service
#2
Posted: 29-04-2015, 11:47 PM
Just create an index.html file and put it in the directory you want to "hide".

Example:
Code:
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Access denied</title>
</head>
<body>
Access denied.
</body>

Send me a message for help. (Read the help docs first)
Steam Wishlist - Anime Watchlist
Closed Account
Posts:
2,764
Joined:
Jan 2015
Likes:
145
Credits:
1,978
Reputation:
26
3 Years of Service
#3
Posted: 29-04-2015, 11:48 PM
If you use apache, google .htaccess ways to block indexing \

it's easier then to spam a index.html in every directory.
Closed Account
Posts:
1,382
Joined:
Jan 2015
Likes:
125
Credits:
1,388
Reputation:
30
3 Years of Service
#4
OP
Posted: 29-04-2015, 11:55 PM
Thank you both guys.

I'm going to do what you linkz said :D

You can close this thread now
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)