You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ac...@aol.com on 2004/08/06 15:52:25 UTC

[users@httpd] Internal Server Error when blocking hotlinking with .htaccess?

I put this in my main directory .htaccess file to block hotlinking.

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?thesonicworld.net/.*$ [NC]
RewriteRule \.(gif|jpg)$ - [F]  

In all the .htaccess file looked like this:

ErrorDocument 404 /custom404.php
ErrorDocument 403 /custom404.php
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?thesonicworld.net/.*$ [NC]
RewriteRule \.(gif|jpg|bmp)$ - [F]

When I tried to access my site I got a huge thing saying INTERAL SERVER 
ERROR. and then stuff about contacting the system administrator.

What happened?

-Andrew