Viewing 6 replies - 16 through 21 (of 21 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    You could try that, I guess this is what @wpsolutions meant above. That could be the reason why you are having this issue.

    Hi Ariko,

    I think you came accross the same problem I already had and reported here.

    The problem is the following line:
    RewriteCond %{HTTP_REFERER} !^http(s)?://(.*)?\.homepage\.com/wordpress [NC]

    Notice the /wordpress part – I guess, you have WordPress installed in wordpress subdirectory? If you remove the /wordpress part from the line above, your images should display fine.

    Why the HTTP referer check blocks the images even if someone visits your own site? Because your site front-end lives under homepage.com, not homepage.com/wordpress. There is no front-end URL that begins with homepage.com/wordpress, so the referer check will always match and block any image request – even from your own site.

    This is of course a bug in AIOWPSF – the HTTP referer check would work properly, if it has been done against output of home_url() instead of site_url(). Site URL should be used for handling of physical assets like CSS and JS files, not for handling of (virtual) front-end URLs – this is what home URL has been designed for.

    Greets,
    ?eslav

    Thread Starter Ariko

    (@ariko)

    Hi ?eslav,

    Yes, as I wrote above, I’ve installed WordPress into a subdirectory. Now I’ve followed your suggestion and deleted manually /wordpress in my .htaccess file and it works now and the images will be displayed again. Thank you!!

    @mbrsolution It looks like, that is a bug in AIOWPSF, because it isn’t unusual to install WP into a subdirectory, isn’t it?

    Thanks!
    Ariko

    Plugin Contributor mbrsolution

    (@mbrsolution)

    @ariko, the plugin developers will investigate further what @?eslav suggested above.

    Thank you

    Thread Starter Ariko

    (@ariko)

    Hi, the problem seems to be resolved now with version 4.0.7

    Thanks again!
    Ariko

    Plugin Contributor mbrsolution

    (@mbrsolution)

    @ariko I am happy to hear. ??

    Enjoy the plugin.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Images disappear after setting firewall Prevent Hotlinks’ is closed to new replies.