/ Published in: Bash

This example shows you how to restrict to a specific file or multiple files. Add the following code block and edit the file name/s according to yuor needs.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# Prevent viewing of a specific file <files file.jpg> Order allow,deny Deny from all </files> # Prevent access to multiple file types <FilesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd)$"> Order Allow,Deny Deny from all </FilesMatch>
URL: http://www.apphp.com/index.php?snippet=htaccess-prevent-access-to-single-file-or-multiple-files
Comments
