Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
emnbdx committed Aug 28, 2024
2 parents 3644cc7 + 2749e14 commit e9ce6e6
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
<Files .env>
Order allow,deny
Deny from all
</Files>

<Directory admin>
Order allow,deny
allow from 90.63.182.86
allow from 217.128.58.80
Deny from all
</Directory>
# Turn on rewrite engine
RewriteEngine On

# Block access to the .env file
RewriteCond %{REQUEST_URI} ^/.env
RewriteRule ^ - [F]

# Restrict access to the admin directory, allow only two specific IPs
RewriteCond %{REQUEST_URI} ^/admin
RewriteCond %{REMOTE_ADDR} !^90\.63\.182\.86$
RewriteCond %{REMOTE_ADDR} !^217\.128\.58\.80$
RewriteRule ^ - [F]

# Block access to specific code directories
RewriteCond %{REQUEST_URI} ^/(app|migration|vendor)/
RewriteRule ^ - [F]

# Disable directory listings
Options -Indexes

0 comments on commit e9ce6e6

Please sign in to comment.