-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
24 lines (20 loc) · 804 Bytes
/
Copy pathindex.php
File metadata and controls
24 lines (20 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/**
* Index.php file.
*
* Using an index file in every folder not having any is one way of preventing directory browsing
* The best way is to remove the Indexes directive from your httpd.conf,
this is however not always an option on for instance hosted server
*
*/
/**
* This index.php file will show an error '404 not found' when entering this folder
* and was created : 24-02-2023 16:22:59 by a xoopsSecure scan/create.
* @package \XoopsModules\xoopssecure
* @copyright The XOOPS Project (https://xoops.org)
* @copyright 2023 Culex
* @author Michael Albertsen (http://culex.dk) <culex@culex.dk>
* @link https://github.com/XoopsModules25x/xoopssecure
* @since 1.0
*/
header($_SERVER["SERVER_PROTOCOL"] . " 404 Not Found", true, 404);