LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > .htaccess Allow from IP or Domain not working

Reply
 
Thread Tools Display Modes
  #1  
Old 09-08-2011, 06:30 AM
dhsimmons_sl dhsimmons_sl is offline
New Member
 
Join Date: Sep 2011
Posts: 1
Default .htaccess Allow from IP or Domain not working

Please help!

I have a hosted web site and do not have access to the Apache server level or vhost or httpd.conf.

I have an .htaccess in my root folder with a mime directive. I have a subfolder called "/secure". In that folder I have another .htaccess file and an .htpasswd file. I also have a page that allows a download of a .msi file once the user registers. I am trying to protect that page from the general user browser while allowing the site navigation to link to the page once the registration POST is completed correctly (driven by a PERL script).

However, no matter how I access the page (either through the browser or from the correct navigation using a "Go to download" button), I receive a Windows Secure window requesting a user id and passwrod. If I key in the user id and password, the download window displays.

I can't seem to find the combination to allow the page with the button to open the secure page without the Windows Secure window.

The .htaccess code in the "/secure" folder is:
# Begin password protection #
AuthName "Username and password required!"
Require valid-user
AuthUserFile "/home/users/web/bnnnnnnn/nnnn.nnnnnn/secure/.htpasswd"
AuthType Basic
Order Deny,Allow
Deny from all
Allow from localhost
Allow from 65.254.248.144
Allow from msprdev.net
Allow from paypal.com
Allow from google.com
Satisfy Any
# End password protection #
end code-

Any suggestions would be most helpful. If I put in the following in any of the two .htaccess files, I receive an Internal Server error.
<Directory /home/*>
Options All
AllowOverride All
</Directory>

Thanks for your attention.
Reply With Quote
  #2  
Old 09-08-2011, 09:46 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
Are you accessing from any of the following? If not, please add your IP to the following list.

Quote:
Allow from localhost
Allow from 65.254.248.144
Allow from msprdev.net
Allow from paypal.com
Allow from google.com
Reply With Quote
  #3  
Old 09-08-2011, 03:38 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
IP should work, domain does not.
Reply With Quote
Reply

Tags
.htaccess, authentication, domain, ip address

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -7. The time now is 10:22 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.