Post by Matty » Sun Sep 25, 2011 2:16 pm

I have a 'development' site which I would like to password protect using the following htaccess file...

Code: Select all

AuthUserFile /usr/home/username/www/htdocs/storename/.htpasswd 
AuthName "ADMIN ONLY" 
AuthType Basic
require user myusername
Only problem is this causes paypal orders to come up as 'abandoned orders' in opencart. I assume this is due to paypal IPN notifications being blocked.

Is there any way I can password protect my site but allow paypal IPN's to gain access?

Thanks
Matt
Last edited by Matty on Sun Sep 25, 2011 8:19 pm, edited 1 time in total.

New member

Posts

Joined
Fri Feb 05, 2010 5:56 pm

Post by uksitebuilder » Sun Sep 25, 2011 6:12 pm

You would have to edit the callback URL that is sent to paypal to include the HTP Auth credentials

Something like:

http://useranme:password@www.yourstore.com

I believe this should work

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Matty » Sun Sep 25, 2011 8:17 pm

Thanks Simon,

I tried your suggestion but it didn't work.

Then I made following changes to the htaccess file and it did the trick!

Code: Select all

AuthUserFile /usr/home/username/www/htdocs/storename/.htpasswd 
AuthName "ADMIN ONLY" 
AuthType Basic
<limit GET>
satisfy any
order deny,allow
deny from all
allow from 66.135.205.13
require user myusername
</limit>

New member

Posts

Joined
Fri Feb 05, 2010 5:56 pm
Who is online

Users browsing this forum: No registered users and 9 guests