apache - 允许 paypal ipn 绕过 .htaccess 中的 Basic Auth

标签 apache .htaccess authentication paypal paypal-ipn

我想允许 paypal 在我的预生产网站上发送 ipn,该网站使用 Apaches Basic Auth 方法进行密码保护。

以下配置不起作用

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

有人知道怎么解决吗?

最佳答案

你不能 - 除非你将 IPN 脚本移出 protected 目录或将其放在它自己的子目录中。读这个:

How to remove .htaccess password protection from a subdirectory

How to password protect an entire website but allow public access to 1 specific file

关于apache - 允许 paypal ipn 绕过 .htaccess 中的 Basic Auth,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17571039/

相关文章:

php - Apache - 使用 .htaccess 重写尾随扩展

php - CodeIgniter Localhost 重定向到 xampp 主屏幕

.net - 有人知道用于对SaaS用户进行计费和身份验证的服务吗?

PHP - 找不到 fatal error 类

linux - 使用 linux 过滤 apache 文件

html - 我的网站似乎不喜欢删除 .html,我无法修复它

authentication - 如何让用户使用 Auth0 登录 Electron 应用程序?

java - 无法将 .p12 证书导入 cacerts

java - Apache 编解码器 base64 编码/解码 - 未获得预期结果

android - 无法从 Android 设备访问本地主机 Web 服务