Code

Does it works with TimThumb image resizer?

« See all FAQs for Hide My WP - Amazing Security Plugin for WordPress!

Does it works with TimThumb image resizer?

Sure, but please note you need to use “relative” URLs for it. You can use Replace in HTML feature to convert current image URLs to relative URLs. If timthumb.php location is similar to following pattern:

wp-content/(themes OR plugins)/PLUGIN_OR_THEME_NAME/timthumb.php

Using following rule for Replace in HTML should solve the problem (DELETE ALL SPACES).

  • timthumb.php?src [equal] http://YOUR_SITE.com/NEW_UPLOAD_PATH = timthumb.php? src [equal] .. / ../ uploads

  • If timthumb file is located in a deeper path you need more ’.. /’ as an example for wp-content/themes/mytheme/includes/timbthumb.php you should have 3 ’.. /’ in your rule.

    PS:
    - NEW_UPLOAD_PATH is your current upload path e.g. “file” - Base on locations and files name it may have little differences in your site. So check out your source code carefully.
    - Make sure you disabled avoid direct access to PHP files or added TimThumb file or theme folder to white list.

    by
    by
    by
    by
    by
    by