| Server IP : 127.0.0.1 / Your IP : 192.168.99.1 Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9 System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64 User : Administrator ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/laragon4/www/bpkd_/admin/ |
Upload File : |
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /bpkd/admin/
# =====================================================
# HAPUS EKSTENSI .php UNTUK ADMIN
# =====================================================
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([^/]+)/?$ $1.php [L]
# =====================================================
# Jangan rewrite untuk file/folder yang ada
# =====================================================
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
</IfModule>
# =====================================================
# KEAMANAN - BLOKIR AKSES LANGSUNG KE FILE PHP
# =====================================================
<FilesMatch "^(database|config)\.php$">
Order Allow,Deny
Deny from all
</FilesMatch>
<FilesMatch "^(header|footer|sidebar|init)\.php$">
Order Allow,Deny
Deny from all
</FilesMatch>
# =====================================================
# KEAMANAN - SECURITY HEADERS
# =====================================================
<IfModule mod_headers.c>
Header set X-XSS-Protection "1; mode=block"
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "SAMEORIGIN"
Header unset X-Powered-By
Header unset Server
</IfModule>
# =====================================================
# DISABLE DIRECTORY BROWSING
# =====================================================
Options -Indexes
# =====================================================
# PROTECT FILES
# =====================================================
<FilesMatch "\.(htaccess|htpasswd|ini|log|sh|sql|bak|config|json)$">
Order Allow,Deny
Deny from all
</FilesMatch>
# =====================================================
# ERROR DOCUMENTS
# =====================================================
ErrorDocument 403 /bpkd/admin/error/403.php
ErrorDocument 404 /bpkd/admin/error/404.php
ErrorDocument 500 /bpkd/admin/error/500.php