Htaccess
Htaccess
# Error Redirect
ErrorDocument 404 /404
# Header all
<IfModule mod_headers.c>
# X-Frame-Options header missing
Header append X-FRAME-OPTIONS "SAMEORIGIN"
# IMAGE CACHE
<FilesMatch "\.(ico|pdf|flv|jpg|JPG|jpeg|png|PNG|gif|js|css|swf)$">
Header set Cache-Control "max-age=31536000, public"
</FilesMatch>
# TEXT CACHE
<FilesMatch "\.(xml|txt)$">
Header set Cache-Control "max-age=31536000, public"
</FilesMatch>
# HTML CACHES
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=31536000, public"
</FilesMatch>
</IfModule>
# Disable modsecurity
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
# PROVIDER PAGES
RewriteRule ^slot/([a-zA-Z0-9_-]+)/$ slot.php?provider=$1 [L]
RewriteRule ^sports/([a-zA-Z0-9_-]+)/$ sports.php?provider=$1 [L]
RewriteRule ^casino/([a-zA-Z0-9_-]+)/$ casino.php?provider=$1 [L]
RewriteRule ^fishing/([a-zA-Z0-9_-]+)/$ fishing.php?provider=$1 [L]
RewriteRule ^egames/([a-zA-Z0-9_-]+)/$ egames.php?provider=$1 [L]
RewriteRule ^togel/([a-zA-Z0-9_-]+)/$ togel.php?provider=$1 [L]
RewriteRule ^slot/([a-zA-Z0-9_-]+)/page=([a-zA-Z0-9_-]+)$ slot.php?
provider=$1&page=$2 [L]
RewriteRule ^sports/([a-zA-Z0-9_-]+)/page=([a-zA-Z0-9_-]+)$ sports.php?
provider=$1&page=$2 [L]
RewriteRule ^casino/([a-zA-Z0-9_-]+)/page=([a-zA-Z0-9_-]+)$ casino.php?
provider=$1&page=$2 [L]
RewriteRule ^fishing/([a-zA-Z0-9_-]+)/page=([a-zA-Z0-9_-]+)$ fishing.php?
provider=$1&page=$2 [L]
RewriteRule ^egames/([a-zA-Z0-9_-]+)/page=([a-zA-Z0-9_-]+)$ egames.php?
provider=$1&page=$2 [L]
RewriteRule ^togel/([a-zA-Z0-9_-]+)/page=([a-zA-Z0-9_-]+)$ togel.php?
provider=$1&page=$2 [L]
# SLOT PAGES
RewriteRule ^slot/rtp-slot$ slot-rtp.php [L]
RewriteRule ^slot/slot-lainnya$ slot-lainnya.php [L]
RewriteRule ^slot/slot-terbaru$ slot-terbaru.php [L]
RewriteRule ^slot/super-spin-slot$ slot-super-spin.php [L]
RewriteRule ^slot/buy-bonus-slot$ slot-buy-bonus.php [L]
RewriteRule ^slot/free-bonus-slot$ slot-free-bonus.php [L]
RewriteRule ^slot/ante-bonus-slot$ slot-ante-bonus.php [L]
# MEMBER PAGES
RewriteRule ^bank$ members/bank.php [L]
RewriteRule ^dashboard$ members/dashboard.php [L]
RewriteRule ^deposit$ members/deposit.php [L]
RewriteRule ^history-betting$ members/history-betting.php [L]
RewriteRule ^history-bonus$ members/history-bonus.php [L]
RewriteRule ^history-slot$ members/history-slot.php [L]
RewriteRule ^history-togel$ members/history-togel.php [L]
RewriteRule ^history$ members/history.php [L]
RewriteRule ^password$ members/password.php [L]
RewriteRule ^payment$ members/payment.php [L]
RewriteRule ^payment-withdraw$ members/payment-withdraw.php [L]
RewriteRule ^profil$ members/profil.php [L]
RewriteRule ^referrals$ members/referrals.php [L]
RewriteRule ^taruhan$ members/taruhan.php [L]
RewriteRule ^withdraw$ members/withdraw.php [L]
# STATIC PAGES
RewriteRule ^page/([a-zA-Z0-9_-]+)$ page/page.php?p=$1 [L]
RewriteRule ^contact page/contact.php [L]
RewriteRule ^referral page/referral.php [L]
RewriteRule ^promo page/promo.php [L]
RewriteRule ^search page/search.php [L]
RewriteRule ^404 page/404.php [L]
RewriteRule ^maintenance-games page/maintenance-games.php [L]
RewriteRule ^maintenance-web page/maintenance-web.php [L]
# AUTH PAGES
RewriteRule ^login auth/login.php [L]
RewriteRule ^register auth/register.php [L]
RewriteRule ^logout auth/logout.php [L]
RewriteRule ^forgot auth/forgot.php [L]
# ALL PAGES
RewriteRule ^([a-zA-Z0-9_-]+)$ $1.php [L]
RewriteRule ^([a-zA-Z0-9_-]+)/$ $1.php [L]
</ifModule>
<IfModule mod_rewrite.c>
## Block bad bots
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:[email protected] [OR]
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]
RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]
RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]
RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]
RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]
RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]
RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]
RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]
RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]
RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]
RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]
RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]
RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]
RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]
RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]
RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]
RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]
RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]
RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]
RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]
RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]
RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule ^.* - [F,L]
<IfModule pagespeed_module>
ModPagespeed On
</IfModule>
# VIDEO
ExpiresByType video/webm "access plus 1 year"
ExpiresByType video/mp4 "access plus 1 year"
ExpiresByType video/mpeg "access plus 1 year"
ExpiresByType video/ogg "access plus 1 year"
# FONTS
ExpiresByType font/ttf "access plus 1 year"
ExpiresByType font/otf "access plus 1 year"
ExpiresByType font/woff "access plus 1 year"
ExpiresByType font/woff2 "access plus 1 year"
ExpiresByType application/font-woff "access plus 1 year"
# PDF, FONT
ExpiresByType application/x-shockwave-flash "access plus 1 year"
ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
ExpiresByType application/x-font-ttf "access plus 1 year"
ExpiresByType application/font-woff "access plus 1 year"
ExpiresByType application/font-woff2 "access plus 1 year"
ExpiresByType application/x-font-woff "access plus 1 year"
</IfModule>
# Exception Images
SetEnvIfNoCase REQUEST_URI \.(?:ico|jpg|JPG|jpeg|png|PNG|gif)$ no-gzip dont-
vary
# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
</IfModule>
# GZIP Compression
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_include mime ^text/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_include handler ^cgi-script$
</ifModule>