osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Secure Catalog pages

This is a discussion on Secure Catalog pages within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Please anyone help, I am new and have created a login outside the catalog pages... How do i secure the ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-29-2003, 04:41 AM
New Member
 
Join Date: Sep 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Skidude
Default Secure Catalog pages

Please anyone help, I am new and have created a login outside the catalog pages... How do i secure the catalog so user can't just type in the broswer to access them ?

I am also trying to define a global parm and i think that is done in English.php but i am not sure about the code? the Variable name in "promo" which is entered at login and i would like to use it to update a field in the customers file when the customer creates an account....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 09-30-2003, 08:41 AM
New Member
 
Join Date: Sep 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Skidude
Default Help

Please can anyone help with my questions ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 09-30-2003, 09:04 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,330
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Use .htaccess to secure pages. Do a google search on htaccess and you will find tons of info.

To create a define in englsh.php, just copy one that is already there and change the info to what you need it to be...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 10-14-2003, 09:12 AM
New Member
 
Join Date: Sep 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Skidude
Default More Help on secure pages

I have searched on .htaccess and cannot find what i am looking for please help... I want to secure pages outside my home page but i don't want to use a password or userid. I don't want anyone typing the url to access the catalog. I created logins outside the catalog and only want to give them access from there. How can i prevent them from typing. www.mydomain/catalog/ to gain access to the catalog..... Please help all i find is redirect and password protect info.......
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 10-16-2003, 01:29 PM
New Member
 
Join Date: Sep 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Skidude
Default Please help!!!

Someone help me out Please i am really hung up on this
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 11-14-2003, 03:45 PM
New Member
 
Join Date: Nov 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kamel
Default

Hello,
Also looking to create a secure login before customer can view the catalog contents.
Would like the customer to login or create an account on the home page and then be able to view the rest of the site. Would also like to have the customer checkout with out having to log in again since they all ready have before entering the site.
I use IIS on windows XP Pro and do not know how to create a PHP login script without using htaccess(seemingly only able to use with Apache).
Any leads please.
Thank You
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 11-15-2003, 09:47 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,568
Thanks: 1
Thanked 84 Times in 71 Posts
Rep Power: 10
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
Default

Try this:

Make an .htaccess file (or copy one from catalog/includes directory) in your catalog directory with:

Code:
<Files *.php>
Order Deny,Allow
Deny from all
</Files>
Then WHEN you call anything from your catalog - you have to use a php "requires" or "includes" to bring it up.

ie: in your root - to call INDEX.PHP out of the /catalog/ directory
Code:
<?php  require('catalog/index.php');?>
thus if you called this file www.yoursite.com/index.php - it will also load
www.yoursite.com/catalog/index.php - however if someone types in to there browser www.yoursite.com/catalog/index.php - they will NOT get anything - disallowed!

This should work
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 11-16-2003, 12:35 AM
New Member
 
Join Date: Nov 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kamel
Default

Thank you for the reply,
I am using IIS server.
Home directory, C:\Inetpub\wwwroot\oscommerce-2.2ms2\catalog
Defualt document index.php
I have the htaccess file with above code in the catalog folder.
When typinh http://mysite or http://mysite/index.php it opens the
home page (also the catalog page).
I would like to use login.php as the Default document to have the
customer log in before shopping but they can click on catalog in the
left of the top bar or type http://mysite/index.php to access the
catalog page.
I have not found any one using htaccess with IIS.
Can this be done?
I have considered using "Umbrella Users" PHP open source login out side of the catalog
folderand removing the need to login at checkout. Not sure how to complete this.
Need a newpage=layout?

http://crash404.com/modules.php?op=m...amp;file=index

Any other GNU ideas?

Thank you very mutch for your time
K
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 11-16-2003, 09:18 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,330
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

kamel, htaccess doesnt work on IIS. I suggest you read a book on IIS. Or search on 'password protection on IIS'

Skidude, not sure why you would want to do such a convoluted thing... Just use the server login instead of your separate one. ??? I never heard of password protection without a password.

You could restrict access to the dir by IP or domain, but that is about it, or look at several of the php based password protection scripts.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 11-16-2003, 12:25 PM
New Member
 
Join Date: Nov 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kamel
Default

Hello msasek,
Thanks for the reply, I can set up user accounts with IIS but, I also wanted the customer to be able to create an account themselves. May just have to use Apache. Looking in to using "Umbrella Users" login cript and then trying to remove or intergrate the OSC login without loosing the OSC merchant abilities? Think I might just hang at the Barns&Noble library for a while to figure it out. I will post when I have a solution.
Thanks again
K
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How do you make all pages secure? smc13 osCommerce 2.2 Modification Help 1 07-31-2004 04:22 AM
Suppressing link xchange banners on secure pages ianmel osCommerce 2.2 Modification Help 1 05-25-2004 04:06 AM
SSL - Links to https pages not including /catalog/ in URL secretagentwoman osCommerce 2.2 Installation Help 8 03-31-2004 01:18 PM
Having catalog in main directory -- secure? gheffron osCMax v1.7 Installation 0 03-15-2004 01:40 AM
Secure Catalog Pages ishann osCommerce 2.2 Modification Help 0 08-22-2003 02:25 AM


All times are GMT -8. The time now is 06:50 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax