[CentOS] httpd .htaccess rewrite for images
Dave
dave.mehler at gmail.comTue Aug 18 01:49:45 UTC 2009
- Previous message: [CentOS] KVM - missing dependency
- Next message: [CentOS] httpd .htaccess rewrite for images
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello, I'm running httpd on a Centos 5.3 machine. I'm trying to use .htaccess to disable direct linking to site images. I've got the following rewrite rule, the domain is test.example.com which is at /var/www/test.example.com under which is a directory called images. RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(test\.)?example.com/.*$ [NC] RewriteRule \.(jpg|gif)$ - [F] In my httpd virtual host directive i have: alias /images "/var/www/test.example.com/images" <Directory "/var/www/test.example.com/images"> Options None AllowOverride None order allow,deny Allow from all </Directory> Comments appreciated. Thanks. Dave.
- Previous message: [CentOS] KVM - missing dependency
- Next message: [CentOS] httpd .htaccess rewrite for images
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list