|
Posted by Jonathan N. Little on 01/29/07 13:44
Blinky the Shark wrote:
> Toby A Inkster wrote:
>> Blinky the Shark wrote:
>>
>>> What I did was comment out a line in .htaccess:
>>>
>>> #RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
>> What this line means is:
>>
>> For any file that ends with any of these:
>>
>> .jpg
>> .jpeg
>> .gif
>> .png
>> .bmp
>>
>> then forbid access.
>
> Holy cats. I can't imagine where that came from. It's not, like,
> something I'd want to do. :)
>
> Is there any chance that's something that, say, cPanel might do if one
> were to enable hot-link blocking? Like perhaps it would only apply to
> image requests that didn't come from within the site?
>
> I seem to have an .htaccess in my images directory, as well.
>
There probably was a preceding line with a RewriteCond statement that
test if the host is your domain name.
# IF referring is not "mydomain.com"
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
Since you have an new domain your are testing you need to allow it... or
remove the rule entirely...
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|