简体   繁体   English

允许Paypal IPN绕过.htaccess中的基本身份验证

[英]Allow paypal ipn to bypass Basic Auth in .htaccess

I want to allow paypal to send ipn on my pre-production site, which is password protected with Apaches Basic Auth method. 我想允许Paypal在我的预生产站点上发送ipn,该站点使用Apaches Basic Auth方法进行密码保护。

The following configuration doesn't work 以下配置无效

AuthType Basic
AuthName "Access restricted"
AuthUserFile .my-htpasswd
Require user my-user
Order deny,allow
Deny from all
Allow from *.paypal.com
Satisfy any

Does someone know how to solve this? 有人知道如何解决吗?

You can't - unless you move the IPN script out of the protected directory or put it in its own sub-directory. 您不能-除非将IPN脚本移出受保护的目录或将其放在其自己的子目录中。 Read this: 读这个:

How to remove .htaccess password protection from a subdirectory 如何从子目录中删除.htaccess密码保护

How to password protect an entire website but allow public access to 1 specific file 如何使用密码保护整个网站,但允许公众访问1个特定文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM