I've read everything I can find on the subject but can't get this to work properly. I'm trying to block the direct linking of my images from outside the sites. It blocks some, but not all, images even when loaded through one of the domains listed. I tried adding "php" to the list as some images use a php file to load them. Any ideas?
Also, the above seems to crash when used with:
but does not crash when I remove "Includes". I don't need Includes but I am curious why it causes the problem.
Don
Experienced in HTML, Perl, PHP, VBScript, PWS, IIS and Apache and MS-Access, MS-SQL, MySQL databases
Code:
RewriteEngine on
RewriteCond !%{HTTP_REFERER} !^$
RewriteCond !%{HTTP_REFERER} !^[URL unfurl="true"]http://localhost\:8080*$[/URL] [NC,OR]
RewriteCond !%{HTTP_REFERER} ^[URL unfurl="true"]http://(www\.)?domain.com/.*$[/URL] [NC,OR]
RewriteCond !%{HTTP_REFERER} ^[URL unfurl="true"]http://(www\.)?domain.net/.*$[/URL] [NC,OR]
RewriteCond !%{HTTP_REFERER} ^[URL unfurl="true"]http://(www\.)?domain.org/.*$[/URL] [NC]
RewriteRule \.(php|gif|jpe?g|png|wav|mpg|mp3|swd|swf)$ [URL unfurl="true"]http://www.domain.com/images/system_images/nolinks.jpg[/URL] [R,NC,L]
Also, the above seems to crash when used with:
Code:
Options -Indexes Includes
but does not crash when I remove "Includes". I don't need Includes but I am curious why it causes the problem.
Don
Experienced in HTML, Perl, PHP, VBScript, PWS, IIS and Apache and MS-Access, MS-SQL, MySQL databases