T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/.cursor-server/data/User/History/-2f24b5ca/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/.cursor-server/data/User/History/-2f24b5ca/ZUvY
RewriteEngine On

# Force HTTPS (optional - uncomment if you have SSL)
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Clean URLs for tracks - /track/123
RewriteRule ^track/([0-9]+)/?$ track.php?id=$1 [L,QSA]

# Clean URLs for charts with track highlighting - /charts/track/123
RewriteRule ^charts/track/([0-9]+)/?$ charts.php?track=$1&highlight=true [L,QSA]

# Open Graph image generation for tracks - /og-image/track/123
RewriteRule ^og-image/track/([0-9]+)/?$ generate_waveform_og.php?track_id=$1 [L,QSA]

# Admin panel clean URLs - /admin/playlists
RewriteRule ^admin/([a-zA-Z0-9_-]+)/?$ admin.php?tab=$1 [L,QSA]

# User profiles - /user/username
RewriteRule ^user/([a-zA-Z0-9_-]+)/?$ profile.php?username=$1 [L,QSA]

# Genre pages - /genre/electronic
RewriteRule ^genre/([a-zA-Z0-9_-]+)/?$ community_fixed.php?genre=$1 [L,QSA]

# Charts by genre - /charts/genre/electronic
RewriteRule ^charts/genre/([a-zA-Z0-9_-]+)/?$ charts.php?genre=$1 [L,QSA]

# Charts by country - /charts/country/canada
RewriteRule ^charts/country/([a-zA-Z0-9_-]+)/?$ charts.php?country=$1 [L,QSA]

# API endpoints (ensure these are not rewritten)
RewriteCond %{REQUEST_URI} !^/api/
RewriteCond %{REQUEST_URI} !^/callback\.php
RewriteCond %{REQUEST_URI} !^/audiofiles\.php

# Prevent access to sensitive files
<Files "config/*">
    Order allow,deny
    Deny from all
</Files>

<Files "*.log">
    Order allow,deny
    Deny from all
</Files>

<Files "callback_log.txt">
    Order allow,deny
    Deny from all
</Files>

# Set proper MIME types for audio files
AddType audio/mpeg .mp3
AddType audio/wav .wav
AddType audio/ogg .ogg

# Enable compression for better performance
<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/json
</IfModule>

# Cache static assets
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType application/pdf "access plus 1 month"
    ExpiresByType text/javascript "access plus 1 month"
    ExpiresByType application/javascript "access plus 1 month"
    ExpiresByType audio/mpeg "access plus 1 week"
    ExpiresByType audio/wav "access plus 1 week"
</IfModule> 

CasperSecurity Mini