php - Deny entry using .htaccess -
i have page home.php
can access loging in , inside page can download files. trying if put in browser: www.domain.com/home.php/file.pdf
, enter, not download file. mean, can download file clicking on link in home.php
.
i have tried code, when click link, sends me error: forbidden.
setenvifnocase referer "^https://www.domanin.com/home.php" local_ref=1 order allow,deny allow env=local_ref
thank time.
you can use following code :
setenvifnocase referer ^https?://www.domanin.com/home.php/.+\.pdf local_ref=1 order allow,deny allow deny env=local_ref
this forbid request - https://www.domanin.com/home.php/file.pdf (referer).
Comments
Post a Comment