Apache .htaccess阻止IP访问,但允许所有URL访问

时间:2017-04-13 08:06:46

标签: apache .htaccess

我已使用.htaccess成功阻止了对我的私人网站的访问,其中包含以下内容:

ErrorDocument 403 http://error.redirect.com

# Stripe webhook IP's
SetEnvIF X-Forwarded-For "(,| |^)xx\.xxx\.xxx\.xxx(,| |$)" AllowIP
SetEnvIF X-Forwarded-For "(,| |^)xx\.xxx\.xxx\.xxx(,| |$)" AllowIP
SetEnvIF X-Forwarded-For "(,| |^)xx\.xxx\.xxx\.xx(,| |$)" AllowIP
SetEnvIF X-Forwarded-For "(,| |^)xx\.xxx\.xx\.xx(,| |$)" AllowIP
SetEnvIF X-Forwarded-For "(,| |^)xx\.xxx\.xx\.xxx(,| |$)" AllowIP
SetEnvIF X-Forwarded-For "(,| |^)xx\.xxx\.xx.\xxx(,| |$)" AllowIP

# PayPal Sandbox IPN IP's
SetEnvIF X-Forwarded-For "(,| |^)xxx\.x\.xx\.xxx(,| |$)" AllowIP
SetEnvIF X-Forwarded-For "(,| |^)xxx\.x\.xx\.xx(,| |$)" AllowIP


Order deny,allow
Deny from all
Allow from env=AllowIP

但我需要能够允许某些网址的完整公共访问权限。如何绕过特定网址的IP限制?

0 个答案:

没有答案