![]() |
Restrict access to a static page until logged in.
Guys, is there anyway to restrict access to a static page. I am not sure how to do this but I offer some free files that can be download from within a static page, how do restrict access to the download files until the customer logs in? How and where should I store these files to prevent them from being downloaded using a web crawler of just linking to the page. I want the customer to go to the website to see the products and not just download the free stuff the easy way. I want to offer the free designs to customers that only have an account with login.
Thanks in advance to all that take the time to help us new people. |
Re: Restrict access to a static page until logged in.
use an if statement
{if $login ne ''} the static page {else} the page to display when logged in {/if} and disable hotlinking using htaccess RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?your-domain.com/.*$ [NC] RewriteRule \.(thefileextension|theotherfileextension)$ - [F] |
Re: Restrict access to a static page until logged in.
Thank you for your reply but I have no idea what you are talking about. I am new at this and it is like learning to speak a different language. Thanks for your help again though. Can anyone else help to clear this up a bit so that all the newbies can understand this.
|
All times are GMT -8. The time now is 02:39 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.