403Webshell
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 :  /bpkd_/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bpkd_/admin/.htaccess_hosting
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /bpkd/admin/

# =====================================================
# PAKSA HTTPS UNTUK ADMIN
# =====================================================
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/bpkd/admin/$1 [R=301,L]

# =====================================================
# BLOKIR AKSES DARI IP TERTENTU (OPSIONAL)
# =====================================================
# RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.000
# RewriteRule .* - [F,L]

# =====================================================
# BLOKIR BRUTE FORCE (5 PERCOBAAN PER MENIT)
# =====================================================
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} /bpkd/admin/(login|auth)\.php$ [NC]
RewriteCond %{REMOTE_ADDR} ^(.*)$
RewriteCond %{ENV:BRUTEFORCE} ^$
RewriteRule .* - [E=BRUTEFORCE:1]

# =====================================================
# 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 [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]

# =====================================================
# REDIRECT SEMUA REQUEST INVALID KE LOGIN
# =====================================================
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]

</IfModule>

# =====================================================
# KEAMANAN ADMIN - BLOKIR AKSES LANGSUNG
# =====================================================
<FilesMatch "^(config|database|functions|init|connection)\.php$">
    Require all denied
</FilesMatch>

<FilesMatch "^(header|footer|sidebar|navbar|modal)\.php$">
    Require all denied
</FilesMatch>

<FilesMatch "^(ajax|process|action|cron)\.php$">
    Require all denied
</FilesMatch>

# =====================================================
# KEAMANAN - PROTECI DARI SQL INJECTION & XSS
# =====================================================
<IfModule mod_rewrite.c>
    # Blokir karakter berbahaya di URL
    RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR,NC]
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) [OR,NC]
    RewriteCond %{QUERY_STRING} (\'|%27).*(\"|%22) [NC]
    RewriteRule .* - [F,L]
</IfModule>

# =====================================================
# KEAMANAN - SECURITY HEADERS (DITINGKATKAN)
# =====================================================
<IfModule mod_headers.c>
    # Headers dasar
    Header set X-XSS-Protection "1; mode=block"
    Header set X-Content-Type-Options "nosniff"
    Header set X-Frame-Options "DENY"  # DENY lebih ketat untuk admin
    
    # HSTS (Strict Transport Security)
    Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS
    
    # Referrer Policy
    Header set Referrer-Policy "same-origin"
    
    # Content Security Policy (lebih ketat untuk admin)
    Header set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self';"
    
    # Hapus informasi sensitif
    Header unset X-Powered-By
    Header always unset Server
    
    # Cegah caching halaman admin (penting!)
    Header set Cache-Control "no-cache, no-store, must-revalidate, private"
    Header set Pragma "no-cache"
    Header set Expires "0"
</IfModule>

# =====================================================
# SESSION SECURITY (DI ATUR PHP, TAPI BISA JUGA DI HTACCESS)
# =====================================================
<IfModule mod_headers.c>
    Header set Set-Cookie "PHPSESSID=HttpOnly; Secure; SameSite=Strict" env=HTTPS
</IfModule>

# =====================================================
# BLOKIR HOTLINKING (MENCEGAH ORANG LAIN PAKAI ASSET ANDA)
# =====================================================
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https://(www\.)?domain-anda\.com [NC]
RewriteRule \.(jpg|jpeg|png|gif|svg)$ - [F,L]

# =====================================================
# DISABLE DIRECTORY BROWSING
# =====================================================
Options -Indexes
Options +FollowSymLinks

# =====================================================
# PROTECT FILE SENSITIF
# =====================================================
<FilesMatch "\.(htaccess|htpasswd|ini|log|sh|sql|bak|config|json|xml|env|txt|md)$">
    Require all denied
</FilesMatch>

# =====================================================
# BLOKIR DARI SERANGAN DOS SEDERHANA
# =====================================================
<IfModule mod_rewrite.c>
    # Blokir banyak request dalam waktu singkat (50 request per 10 detik)
    RewriteCond %{REQUEST_METHOD} !^POST$
    RewriteCond %{ENV:RATELIMIT} ^$
    RewriteRule .* - [E=RATELIMIT:1]
</IfModule>

# =====================================================
# ERROR DOCUMENTS (CUSTOM)
# =====================================================
#ErrorDocument 400 /bpkd/admin/error/400.php
#ErrorDocument 401 /bpkd/admin/error/401.php
ErrorDocument 403 /bpkd/admin/error/403.php
ErrorDocument 404 /bpkd/admin/error/404.php
#ErrorDocument 405 /bpkd/admin/error/405.php
ErrorDocument 500 /bpkd/admin/error/500.php
#ErrorDocument 502 /bpkd/admin/error/502.php
#ErrorDocument 503 /bpkd/admin/error/503.php

# =====================================================
# TIMEZONE (OPSIONAL)
# =====================================================
SetEnv TZ Asia/Jakarta

Youez - 2016 - github.com/yon3zu
LinuXploit