Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Restrict access to a static page until logged in.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-12-2007, 07:04 PM
 
sparker2 sparker2 is offline
 

eXpert
  
Join Date: Feb 2007
Posts: 290
 

Default 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.
__________________
Shareen
sparker2@cox.net
http://www.stitches4u.com
X-Cart Version 4.5.0 with Smart Template vs 4.4.x
Reply With Quote
  #2  
Old 03-12-2007, 09:19 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default 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]
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #3  
Old 03-13-2007, 08:07 AM
 
sparker2 sparker2 is offline
 

eXpert
  
Join Date: Feb 2007
Posts: 290
 

Default 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.
__________________
Shareen
sparker2@cox.net
http://www.stitches4u.com
X-Cart Version 4.5.0 with Smart Template vs 4.4.x
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:00 PM.

   

 
X-Cart forums © 2001-2020