1

On Apache, how do I allow only traffic from one wildcard URL, such as: *secure.mywebsite.com*, and DENY all other http requests?

Thanks

4

1 回答 1

1

你可以这样做:

RewriteCond %{HTTP_HOST} !(^|\.)secure\.mywebsite\.com$ [NC]
RewriteRule ^ - [F]

这将拒绝(禁止错误)所有网络请求,如果它们不是secure.mywebsite.com

于 2013-09-17T10:20:28.633 回答