mirror of
https://github.com/myronblair/orbis-hosting-portal
synced 2026-07-27 12:42:52 -05:00
11 lines
618 B
ApacheConf
11 lines
618 B
ApacheConf
# Block direct web access to the .git directory and other dotfiles.
|
|
# The .git folder lives inside public_html (docRoot) and was found to be
|
|
# directly downloadable over HTTPS (e.g. https://orbis.orbishosting.com/.git/config),
|
|
# which leaked a live GitHub personal access token embedded in the remote URL.
|
|
# Note: standard Apache access-control directives (RedirectMatch, FilesMatch/
|
|
# Require all denied, Order/Deny) are silently ignored on this LiteSpeed vhost.
|
|
# Only mod_rewrite rules are honored (confirmed via testing), hence this form.
|
|
RewriteEngine On
|
|
RewriteCond %{REQUEST_URI} ^/\.git
|
|
RewriteRule .* - [F,L]
|