Page 1 of 2 12 LastLast
Results 1 to 10 of 11

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 ...

      
  1. #1
    New Member
    Join Date
    Sep 2003
    Posts
    8
    Rep Power
    0


    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....

  2. #2
    New Member
    Join Date
    Sep 2003
    Posts
    8
    Rep Power
    0


    Default Help

    Please can anyone help with my questions ?

  3. #3
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    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 installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  4. #4
    New Member
    Join Date
    Sep 2003
    Posts
    8
    Rep Power
    0


    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.......

  5. #5
    New Member
    Join Date
    Sep 2003
    Posts
    8
    Rep Power
    0


    Default Please help!!!

    Someone help me out Please i am really hung up on this

  6. #6
    New Member
    Join Date
    Nov 2003
    Posts
    10
    Rep Power
    0


    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

  7. #7
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    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

  8. #8
    New Member
    Join Date
    Nov 2003
    Posts
    10
    Rep Power
    0


    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

  9. #9
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    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 installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  10. #10
    New Member
    Join Date
    Nov 2003
    Posts
    10
    Rep Power
    0


    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

Page 1 of 2 12 LastLast

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •