0
我的.htaccess阻止所有用戶代理,只允許一個人的,我需要
允許的CloudFlare訪問我怎麼才能讓不使用(Mozilla的) 這是我得到的user-agent
的Mozilla/5.0(兼容; CloudFlare的-AlwaysOnline/1.0; + http://www.cloudflare.com/always-online) 的CloudFlare用戶代理htaccess的
RewriteEngine on AuthType Basic AuthName "private" AuthUserFile "/home/example/.htpasswds/public_html/exemple/passwd" require valid-user #-only allow-# SetEnvIf User-Agent .0011 0011 Order deny,allow Deny from all Allow from env=0011 #-index only open for 0011-# Options +Indexes RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{HTTP_USER_AGENT} !0011 [NC] RewriteRule . - [F]
我瞭解thnx的建議,我在想如果我允許將使文件傳輸更快 –
是的,CloudFlare被用作緩存(代理服務器),但它需要讀取所有可以改變的html頁面和文件,具體取決於用戶登錄 – Croises