Reply to Re: No Images - Found Something! (was Re: No Images)

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация