# Protect admin directory
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /booklinks/admin/
    
    # Security measures
    <FilesMatch "\.php$">
        Order allow,deny
        Allow from all
    </FilesMatch>
</IfModule>

# Prevent directory listing
Options -Indexes

# Basic authentication (optional, for extra security)
# AuthType Basic
# AuthName "Restricted Area"
# AuthUserFile /path/to/.htpasswd
# Require valid-user