-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_htaccess
83 lines (67 loc) · 3.79 KB
/
_htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Block gambling-related URLs
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_URI} (slot|judi|gacor|maxwin|casino|togel|pragmatic|pg\s*soft|zeus|deposit|dana|betting|joker|habanero|spadegaming|scatter|demo|olympus|princess|gatotkaca) [NC]
RewriteRule .* - [F,L]
# Block specific gambling terms
RedirectMatch 403 (?i).*(slot|judi|gacor|maxwin|casino|togel|pragmatic|pg\s*soft|zeus|deposit|dana|betting).*
RedirectMatch 403 (?i).*(slot\s*online|slot\s*gacor|slot\s*maxwin|slot\s*pragmatic).*
RedirectMatch 403 (?i).*(slot\s*thailand|slot\s*russia|slot\s*filipina|slot\s*eropa|slot\s*jepang).*
RedirectMatch 403 (?i).*(slot\s*deposit|slot\s*dana|slot\s*88|slot\s*777|slot\s*303).*
RedirectMatch 403 (?i).*(joker\s*123|joker\s*gaming|spadegaming|habanero|no\s*limit\s*city).*
RedirectMatch 403 (?i).*(gates\s*of\s*olympus|starlight\s*princess|gates\s*of\s*gatotkaca).*
RedirectMatch 403 (?i).*(demo\s*slot|demo\s*scatter|scatter\s*hitam|spaceman\s*slot).*
RedirectMatch 403 (?i).*(sbobet\s*indonesia|situs\s*sbobet|judi\s*bola\s*online).*
RedirectMatch 403 (?i).*(slot\s*online\s*terbaik|daftar\s*slot\s*gacor|daftar\s*slot\s*maxwin).*
RedirectMatch 403 (?i).*(daftar\s*akun\s*gacor|situs\s*slot\s*gacor|server\s*slot\s*gacor).*
RedirectMatch 403 (?i).*(slot\s*88|slot\s*nuke\s*gaming|slot\s*idn|slot\s*4d).*
RedirectMatch 403 (?i).*(agen\s*slot|garansi\s*kekalahan|bonus\s*new\s*member).*
RedirectMatch 403 (?i).*(bandar\s*slot|game\s*slot|situs\s*slot|pola\s*slot).*
RedirectMatch 403 (?i).*(scatter\s*selayar|bo\s*slot|bonus\s*slot).*
RedirectMatch 403 (?i).*(deposit\s*slot\s*minimal|deposit\s*slot\s*online).*
RedirectMatch 403 (?i).*(robopragma|robopg|cheat\s*slot|slot\s*mudah|mahjong).*
RedirectMatch 403 (?i).*(olympus\s*slot|link\s*robo|gampang\s*menang).*
# Block IP addresses attempting to access gambling content
Order Allow,Deny
Deny from env=BlockAccess
Allow from all
# Custom error page for blocked requests
ErrorDocument 403 "Access Denied"
# Block shell, SEO spam and specific domains
RewriteCond %{REQUEST_URI} (shell|seo|backlink|traffic|bot|human|jingling|flutter_api|rank|bokep|nonton) [NC]
RewriteRule .* - [F,L]
# Block specific spam domains
RewriteCond %{HTTP_HOST} (salmaedusociety\.com|voyageams\.com|umpwr\.ac\.id) [NC]
RewriteRule .* - [F,L]
# Block specific spam domains and paths
RedirectMatch 403 (?i).*(masmubata-bata\.com|sainttheresa\.ac\.id|pn-tilamuta\.go\.id|politikamalang\.com|belanjamalang\.com).*
RedirectMatch 403 (?i).*(creativity|wisuda|silamu|pengaduan|ecuti|delegasi).*
RedirectMatch 403 (?i).*(wp-includes|ID3|IXR|action|amp-unirow).*
# Block specific email addresses
RedirectMatch 403 (?i).*cherlinemerline@gmail\.com.*
# Block shell and SEO terms
RedirectMatch 403 (?i).*(shell\s*for\s*seo|seo\s*backlink|high\s*traffic|bot\s*human).*
# Block shell and SEO spam backlinks
RewriteCond %{REQUEST_URI} (shell|seo|backlink|traffic|bot|human|jingling) [NC]
RewriteRule .* - [F,L]
# Block specific spam domains and paths
RedirectMatch 403 (?i).*(masmubata-bata\.com|sainttheresa\.ac\.id|pn-tilamuta\.go\.id|politikamalang\.com|belanjamalang\.com).*
RedirectMatch 403 (?i).*(creativity|wisuda|silamu|pengaduan|ecuti|delegasi).*
RedirectMatch 403 (?i).*(wp-includes|ID3|IXR|action|amp-unirow).*
# Block specific email addresses
RedirectMatch 403 (?i).*cherlinemerline@gmail\.com.*
# Block shell and SEO terms
RedirectMatch 403 (?i).*(shell\s*for\s*seo|seo\s*backlink|high\s*traffic|bot\s*human).*
# Custom error for blocked requests
ErrorDocument 403 "Access Denied - Suspicious Activity Detected"
# Blokir akses ke file .env
<Files .env>
Order allow,deny
Deny from all
</Files>
# Blokir akses ke direktori yang mengandung .env
RewriteCond %{REQUEST_URI} \.env$ [NC]
RewriteRule .* - [F,L]
# Tambahkan header keamanan
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
</IfModule>