WordPress.org

Ready to get started?Download WordPress

Forums

ByREV WP-PICShield
Can't seem to get it working (2 posts)

  1. jackle99
    Member
    Posted 1 year ago #

    I have wordpress installed in a sub directory and have the plugin installed.

    My .htaccess looks like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /inspiration/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /inspiration/index.php [L]
    </IfModule>

    # END WordPress

    # BEGIN WP-PICShield
    # Header always append X-Frame-Options SAMEORIGIN
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_URI} \.(jpg|jpeg|png|gif)$ [NC]
    RewriteCond %{REMOTE_ADDR} !^(127.0.0.1|77.72.0.66)$ [NC]
    RewriteCond %{REMOTE_ADDR} !^66.6.(32|33|36|44|45|46). [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?(www.butterflywish.co.uk|translate.google.com|translate.googleusercontent.com|www.microsofttranslator.com|pinterest.com|tumblr.com|facebook.com|plus.google|twitter.com) [NC]
    RewriteCond %{HTTP_USER_AGENT} !(googlebot|msnbot|baiduspider|slurp|webcrawler|teoma|photon|facebookexternalhit|pinterest|feedfetcher) [NC]
    RewriteCond %{HTTP_USER_AGENT} !(photon|smush.it|akamai|cloudfront|netdna|bitgravity|maxcdn|edgecast|limelight) [NC]
    RewriteRule (.*) byrev-wp-picshield.php?key=8h0T-yvUm&src=$1 [L]
    </IfModule>
    # END WP-PICShield

    When I click on images from Google images they go straight to the image with no redirection. Could this be something to do with my .htaccess from the main directory?

    Just to add my site is here http://www.butterflywish.co.uk/inspiration/
    I would appreciate the help,
    Thanks,
    Alex.

    http://wordpress.org/extend/plugins/byrev-wp-picshield-hotlink-defence/

  2. Emilian Robert Vicol
    Member
    Plugin Author

    Posted 1 year ago #

    redirection work but htacces rules not!

    http://www.butterflywish.co.uk/inspiration/byrev-wp-image2url.php?src=wp-content/uploads/2013/03/wedding-spoons.jpg

    I have not tested the installation in a folder ...

    in # BEGIN WP-PICShield rules try to add

    RewriteBase /inspiration/

    after

    RewriteEngine On

    and change

    RewriteRule (.*) byrev-wp-picshield.php?key=8h0T-yvUm&src=$1 [L]

    with

    RewriteRule (.*) /inspiration/byrev-wp-picshield.php?key=8h0T-yvUm&src=$1 [L]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.