MyBB Support

What permissions should I use on images directory?

Submitted by AndresXZ09, , Thread ID: 3349

Thread Closed
AndresXZ09
Closed Account
Level:
0
Reputation:
30
Posts:
1.22K
Likes:
139
Credits:
1.51K
30-04-2015, 12:43 AM
#1
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:

RE: What permissions should I use on images directory?

Aoki
retired
Level:
83
Reputation:
348
Posts:
7.89K
Likes:
2.3K
Credits:
1.7K
30-04-2015, 12:47 AM
#2
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>

RE: What permissions should I use on images directory?

Blowjob
Closed Account
Level:
0
Reputation:
26
Posts:
2.16K
Likes:
189
Credits:
2.53K
30-04-2015, 12:48 AM
#3
If you use apache, google .htaccess ways to block indexing \

it's easier then to spam a index.html in every directory.

RE: What permissions should I use on images directory?

AndresXZ09
Closed Account
Level:
0
Reputation:
30
Posts:
1.22K
Likes:
139
Credits:
1.51K
OP
30-04-2015, 12:55 AM
#4
Thank you both guys.

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

You can close this thread now

Users browsing this thread: 1 Guest(s)