<IfModule mod_headers.c>
    <FilesMatch ".*">
        Header set X-Robots-Tag "noindex, nofollow"
    </FilesMatch>
</IfModule>

# Ngăn chặn liệt kê thư mục
Options -Indexes

# Chống truy cập trực tiếp các file tài liệu từ bên ngoài
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://thuanthiencorp.com.vn/.* [NC]
RewriteCond %{HTTP_REFERER} !^https://thuanthiencorp.com.vn/.* [NC]
RewriteRule \.(pdf|zip|rar|docx|xlsx|jpg|png)$ - [F,NC]
    *Lưu ý: Thay `thuanthiencorp.com.vn` bằng đúng domain của bạn.*