0
我正在使用Apache httpd。我啓用了Apache的rewrite
模塊。我需要阻止一些網址(引用垃圾郵件)。我有權編輯httpd.conf
文件。低於語法正確阻止多個網址?Apache httpd塊垃圾郵件網址?
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
RewriteEngine on
RewriteCond %{HTTP_REFERER} example.com [NC]
RewriteCond %{HTTP_REFERER} sample.com [NC]
RewriteCond %{HTTP_REFERER} somexxx.com [NC]
RewriteRule .* - [F]
</Directory>