llocally / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

Thumbnails are not generated if root is "deny from all" #221

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set timthumb 2.0
2. Set deny from all in .htaccess, but allow from your-ip
3. Thumbnails are not generated

What is the expected output? What do you see instead?
Thumbnails of course.

What version of the product are you using? On what operating system?
TimThumb 2.0 on HostGator

Please provide any additional information below.
Older versions of TimThumb did not have this problem.

Original issue reported on code.google.com by brinzan....@gmail.com on 6 Aug 2011 at 7:37

GoogleCodeExporter commented 9 years ago
There is something wrong with your apache config. I tested this with .htaccess 
containing:

order deny,allow
allow from <my ip>
deny from all

with both versions and it works fine. 

Original comment by mmaun...@gmail.com on 6 Aug 2011 at 11:22

GoogleCodeExporter commented 9 years ago
Weird that it doesn't work on a HostGator server. 

Trying to directly open it in a browser returns this:

A TimThumb error has occured
The following error(s) occured:
The remote file is not a valid image.

Original comment by brinzan....@gmail.com on 7 Aug 2011 at 7:00