0
외부에서 하나의 파일에 대한 액세스가 거부되었습니다.액세스 파일을 거부했습니다.
if you go www.mysite.com/file.txt - ban.
if you go /home/public_html/file.txt - ok.
감사)
외부에서 하나의 파일에 대한 액세스가 거부되었습니다.액세스 파일을 거부했습니다.
if you go www.mysite.com/file.txt - ban.
if you go /home/public_html/file.txt - ok.
감사)
모든 확장자 (.txt
)
<Files ~ "\.txt$">
Order allow,deny
Deny from all
</Files>
특정 파일
<Files file.txt>
order allow,deny
deny from all
</Files>
이 htaccess tricks 또는 this one
읽기
Apache를 사용한다고 가정하면 .htaccess 파일을 사용하여 특정 파일 형식을 제한 할 수 있습니다.
<FilesMatch "\.txt$">
Order Allow,Deny
Deny from all
</FilesMatch>
문서 루트 외부에 배치 할 수 없습니까? – alexn
'.exe' 파일은 브라우저에서 열리지 않습니다. – diEcho
죄송합니다, txt 파일 :) – lolalola