I have some download files protected by "HTTP_REFERER" the config is: ---------------------------------------- SetEnvIfNoCase Referer "^http://www\.mydomain\.com/" local_ref=1 <FilesMatch "\.(pdf¦exe)"> Order Allow,Deny Allow from env=local_ref </FilesMatch> ---------------------------------------- A long time this work fine. But last 3 days, I check my log files, I find someone use a "Counterfeit" HTTP_REFERER to download these files. I sure these requests are not from my website, but these requests had a "Counterfeit" HTTP_REFERER like "http://www.mydomain.com/". then Anti Leech using HTTP_REFERER is invalidate. Who can give me some advice? I want to look for another method to protecte my files on Apache. Thanks.
If any use download bot - he can give you any header, in this case any HTTP_REFERER. To protect files from stupid bots use JavaScript to make link. In another case you may use JavaScript + php sessions, like files-upload.com.