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

Your name:

Reply:


Posted by Blinky the Shark on 01/29/07 18:19

Jonathan N. Little wrote:
> 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...

Here's that part of my .htaccecss (the one in my document root:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://blinkynet.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://blinkynet.net$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.blinkynet.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.blinkynet.net$ [NC]
#RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

Looks sensible?

There's none of that in the .htaccess that's in my images subdirectory,
and since there are lines like AddHandler and DefaultCharset in that one
I sense it's a file that simply got mis-saved to the wrong place.
Agree?

--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html

[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

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