# PinPoint Control — Apache settings for shared/cPanel hosting.
#
# Optional. The panel works without this file; everything here is hardening.
# If your host runs LiteSpeed (most cPanel hosts do) these still apply.

# Never list the folder's contents if index.html is ever missing.
Options -Indexes

# Keep the panel out of search engines, as well as the <meta> tag in the page.
<IfModule mod_headers.c>
  Header set X-Robots-Tag "noindex, nofollow"
  Header set X-Content-Type-Options "nosniff"
  Header set Referrer-Policy "strict-origin-when-cross-origin"
  Header set X-Frame-Options "SAMEORIGIN"
</IfModule>

# config.js holds no secret -- the key in it is the publishable one, which is
# public by design -- but there is no reason to let it be fetched on its own
# or cached stale after you change projects.
<IfModule mod_headers.c>
  <FilesMatch "\.(html|js)$">
    Header set Cache-Control "no-cache, must-revalidate"
  </FilesMatch>
</IfModule>

# ---------------------------------------------------------------------------
# A second lock on the door (recommended)
# ---------------------------------------------------------------------------
#
# The database already refuses everyone who is not on the admin allowlist, so
# this is not what keeps your data safe -- it keeps the login page itself from
# being seen at all.
#
# In cPanel: Directory Privacy -> pick this folder -> set a username and
# password. cPanel writes the two lines below for you, with the real path to
# the .htpasswd file it creates. Do NOT type them by hand: the path is
# specific to your account.
#
#   AuthType Basic
#   AuthName "PinPoint Control"
#   AuthUserFile /home/YOURACCOUNT/.htpasswds/public_html/admin/passwd
#   Require valid-user
