Results 1 to 8 of 8
  1. #1
    Newbie Affiliate Ian's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,540
    Customizing htaccess protection
    I am running an htaccess file to password protect a site. Can anything be done to customize the pop up? RIght now, it asks for Username & Password.

    Can I change this fields to say something else?

  2. #2
    Moderator MichaelColey's Avatar
    Join Date
    January 18th, 2005
    Location
    Mansfield, TX
    Posts
    16,232
    I don't believe so.
    Michael Coley
    Amazing-Bargains.com
     Affiliate Tips | Merchant Best Practices | Affiliate Friendly? | Couponing | CPA Networks? | ABW Tips | Activating Affiliates
    "Education is the most powerful weapon which you can use to change the world." Nelson Mandela

  3. #3
    Newbie Affiliate Ian's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,540
    Hey Mike,

    Thanks for the reply. I was hoping but I think you are right.

    A 2nd question then. When I upload my htaccess into the wwwroot folder, everythying works. But when a user navigates further into a dubfolder, the popup shows again asking for ID an pw. I want to password protect an entire site (with subfolders). Is there a way to make it so that the user only has to type in the id and pw 1 time and all subfolders will recognize the user?

  4. #4
    Moderator MichaelColey's Avatar
    Join Date
    January 18th, 2005
    Location
    Mansfield, TX
    Posts
    16,232
    Are you copying the .htaccess file (or the Limit code within it) into the subfolders, too? I think you just need the code in the .htaccess file in the highest level directry that you want protected.

    Also, you do know that you can use "AuthName" to set the description of what is being protected, right?
    Michael Coley
    Amazing-Bargains.com
     Affiliate Tips | Merchant Best Practices | Affiliate Friendly? | Couponing | CPA Networks? | ABW Tips | Activating Affiliates
    "Education is the most powerful weapon which you can use to change the world." Nelson Mandela

  5. #5
    Newbie Affiliate Ian's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,540
    I have copied the htaccess file into the wwwroot folder. I am not sure why it asks for the id & pw when a user navigates into a subfolder.

    Here is my file:

    AuthName "Restricted Area"
    AuthType Basic
    AuthUserFile /path/to/.htpasswd
    AuthGroupFile /dev/null
    require valid-user

    Isn't the Auth Name just what shows up on the popup?

    What is the limit settings you mentioned. Can you provide more info on this?

    Thanks Mike.

  6. #6
    Moderator MichaelColey's Avatar
    Join Date
    January 18th, 2005
    Location
    Mansfield, TX
    Posts
    16,232
    Hmmm, my "require" line is inside of "<Limit GET>" and "</Limit>".

    I'm at about the limit of my knowledge here. Maybe someone else might be able to help more.
    Michael Coley
    Amazing-Bargains.com
     Affiliate Tips | Merchant Best Practices | Affiliate Friendly? | Couponing | CPA Networks? | ABW Tips | Activating Affiliates
    "Education is the most powerful weapon which you can use to change the world." Nelson Mandela

  7. #7
    Newbie Affiliate Ian's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,540
    Yeah, I tried suing the LIMIT lines like so:

    http://home.golden.net/htaccess.html

    But the server is still asking for id + pw when I visit sub folders.

    Anyone shed some light on this?

  8. #8
    Newbie Affiliate Ian's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,540
    ok, figured this out. It asks for the ID + PW again becasue I manually typed in a sub foldre in the address bar. If I code a href link from the first page and go into a subfolder from a link, the user is not prompted with the user id or pw popup.

    Hope this can help someone else.

  9. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Question about customizing shops??
    By writerguy in forum PopShops
    Replies: 7
    Last Post: September 26th, 2007, 01:53 AM
  2. customizing oscommerce
    By seasickmedia in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: August 28th, 2006, 12:02 PM
  3. customizing osc for affiliates
    By seasickmedia in forum Introduce Yourself
    Replies: 1
    Last Post: June 26th, 2006, 04:08 PM
  4. Customizing /Site Examples using CJ
    By meleemel in forum Commission Junction - CJ
    Replies: 19
    Last Post: December 27th, 2004, 11:30 AM

Posting Permissions

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