disallow /summary and /refs via Cloudfront
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
cf9388d0eb
commit
6efc88cff5
1 changed files with 7 additions and 0 deletions
|
@ -1,4 +1,11 @@
|
||||||
DocumentRoot /srv/web/ostree
|
DocumentRoot /srv/web/ostree
|
||||||
|
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
RewriteRule "^/objects/([a-f0-9]{2})/([a-f0-9]{62})\.commitmeta$" https://d1gglb5celp6et.cloudfront.net/objects/$1/$2.commitmeta
|
RewriteRule "^/objects/([a-f0-9]{2})/([a-f0-9]{62})\.commitmeta$" https://d1gglb5celp6et.cloudfront.net/objects/$1/$2.commitmeta
|
||||||
|
|
||||||
|
RewriteCond %{HTTP:X-Amz-Cf-Id} ^$
|
||||||
|
RewriteRule ^/summary - [F]
|
||||||
|
|
||||||
|
RewriteCond %{HTTP:X-Amz-Cf-Id} ^$
|
||||||
|
RewriteRule ^/refs - [F]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue