MyBB Support

What permissions should I use on images directory?

Submitted by AndresXZ09, , Thread ID: 3349

Thread Closed
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?

#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?

#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?

OP
#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)