I use timthumbs on my Wordpress site. But I included all the changes that I found while looking for this problem.
I have included ALLOW_EXTERNAL and ALLOW_ALL_EXTERNAL_SITES.
//Image fetching and caching if(! defined('ALLOW_EXTERNAL') ) define ('ALLOW_EXTERNAL', TRUE); // Allow image fetching from external websites. Will check against ALLOWED_SITES if ALLOW_ALL_EXTERNAL_SITES is false if(! defined('ALLOW_ALL_EXTERNAL_SITES') ) define ('ALLOW_ALL_EXTERNAL_SITES', true);
I recreated my .htaccess file. I also included the following code in my .htaccess file.
<IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule>
But it does not work in my domain. But it works in a different domain.
The URL of the image I was trying to get is
URL: http://webhugh.org/viyugam/timthumb/timthumb.php?src=http://farm3.static.flickr.com/2340/2089504883_863fb11b0a_z.jpg
I get 403 denied , I gave permission 0755 to cache the folder.
source share