Prevent Direct Link to the Component URL
Posted: 31 May 2014, 19:25
HI,
I have installed the phoca download for Joomla 3.3. I want to prevent download access to direct link based on HTTP Referrer. I read the tips here and I have saved these files outside public_html and set the absolute path in Phoca Download settings. This doesnt give the direct link to the pdf file since its placed outside root. However, the file can still be downloaded using the components direct link. Meaning, if someone types in the url like this, they can download it even if that link is placed in another website:
So it is still downloadable using the components direct link although the file is placed outside root. How do I make sure that the file is only downloaded if the http referrer to that component link is from my site only? I dont want to restrict only for registered users. Rather all users can download it as long as the link is from my own site. How can I do that? What am I missing here?
I have installed the phoca download for Joomla 3.3. I want to prevent download access to direct link based on HTTP Referrer. I read the tips here and I have saved these files outside public_html and set the absolute path in Phoca Download settings. This doesnt give the direct link to the pdf file since its placed outside root. However, the file can still be downloaded using the components direct link. Meaning, if someone types in the url like this, they can download it even if that link is placed in another website:
Code: Select all
http://127.0.0.1/mysite/index.php/download/category/2-category-1?download=1:super-file-1