WP Content Copy Protection – Image Protection htaccess code

Home Forums BulletProof Security Pro WP Content Copy Protection – Image Protection htaccess code

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39942
    AITpro Admin
    Keymaster

    Email Question:

    Hi,

    i am not sure if i have setup everything corrrect, but i keep getting alerts that .htacces fiels have been put in quarantine when i upload/install a new plugin thru worpress plugin manager.

    I was under the impression only when i would upload stuff direct (ftp or ssh) it would give these notices. The documentation is not quit clear to me.

    What is correct way to add new plugins?

    kind regards

    #39943
    AITpro Admin
    Keymaster

    Solution:

    The htaccess code being added to the bottom of your root htaccess file is the WP Content Copy Protection Pro htaccess code for Image Protection, which is causing your root htaccess file to be quarantined. What you need to do is add the WP Content Copy Protection Pro htaccess code to BPS Pro root Custom Code to save it permanently and to prevent the root htaccess file from being quarantined.

    1. Copy the WP Content Copy Protection Pro htaccess code from the bottom of your root htaccess file from: # BEGIN wccp_pro_image_protection to: # END wccp_pro_image_protection.
    2. Go to the BPS Pro > B-Core > Custom Code tab page.
    3. Click the Root htaccess File Custom Code accordion tab/button.
    4. Paste the WP Content Copy Protection Pro htaccess code into this BPS Root Custom Code text box: 14. CUSTOM CODE BOTTOM HOTLINKING/FORBID COMMENT SPAMMERS/BLOCK BOTS/BLOCK IP/REDIRECT CODE
    5. Click the Save Root Custom Code button.
    6. Go to the Security Modes tab page and click the Root folder BulletProof Mode Activate button.
    7. Delete the root htaccess file (auto_.htaccess) in Quarantine.

    Example WP Content Copy Protection Pro Image Protection htaccess code (Do not use this example code – use your actual wccp image protection htaccess code).

    # BEGIN wccp_pro_image_protection
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_USER_AGENT} (PrintFriendly.com)
    RewriteRule ^.*$ https://www.example.com/wp-content/plugins/wccp-pro/watermark.php [R=301,L]
    
    RewriteCond %{HTTP_COOKIE} (wccpprocookie=excludethispage)
    RewriteRule ^(.*)\.(jpg|png|jpeg|gif)$ - [NC,L]
    
    RewriteCond %{QUERY_STRING} (wccp_pro_watermark_pass) [NC,OR]
    RewriteCond %{REQUEST_URI} (wp-content/plugins) [NC,OR]
    RewriteCond %{REQUEST_URI} (wp-content/themes) [NC,OR]
    RewriteCond %{REQUEST_URI} (logo|background|150x150) [NC,OR]
    RewriteCond %{REQUEST_URI} (1536x1536|2048x2048|400x250|1080x675|400x284|510x382|1080x9999) [NC]
    RewriteRule ^(.*)\.(jpg|png|jpeg|gif)$ - [NC,L]
    # What happen to images on my site
    #RewriteCond %{HTTP_ACCEPT} (image|png) [NC]
    RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?example.com [NC,OR]
    RewriteCond %{HTTP_REFERER} ^(.*)example.com [NC]
    RewriteRule ^.*$ - [NC,L]
    #Save as or Click on View image after right click or without any referer
    RewriteCond %{REQUEST_URI} (stackpathcdn.com) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} (stackpathcdn.com) [NC,OR]
    RewriteCond %{HTTP_ACCEPT} (text|html|application|image|png) [NC]
    RewriteRule ^(.*)\.(jpg|png|jpeg)$ https://www.example.com/wp-content/plugins/wccp-pro/watermark.php?&src=/$1.$2&w=1 [R=301,NC,L]
    RewriteCond %{REQUEST_URI} \.(jpg|jpeg|png)$ [NC]
    RewriteCond %{REMOTE_ADDR} !^(127.0.0.1|162.144.5.62)$ [NC]
    RewriteCond %{REMOTE_ADDR} !^66.6.(32|33|36|44|45|46|40). [NC]
    RewriteCond %{HTTP_USER_AGENT} !(this_is_just_not_any_wanted_service_name) [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?(this_is_just_not_any_wanted_service_name) [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?(www.example.com|example.com|pinterest.com|tumblr.com|facebook.com|plus.google|twitter.com|googleapis.com|googleusercontent.com|ytimg.com|gstatic.com) [NC]
    RewriteCond %{HTTP_USER_AGENT} !(linkedin.com|googlebot|msnbot|baiduspider|slurp|webcrawler|teoma|photon|facebookexternalhit|facebookplatform|pinterest|feedfetcher|ggpht) [NC]
    RewriteCond %{HTTP_USER_AGENT} !(photon|smush.it|akamai|cloudfront|netdna|bitgravity|maxcdn|edgecast|limelight|tineye) [NC]
    RewriteCond %{HTTP_USER_AGENT} !(developers|gstatic|googleapis|googleusercontent|google|ytimg) [NC]
    RewriteRule ^(.*)\.(jpg|png|jpeg)$ https://www.example.com/wp-content/plugins/wccp-pro/watermark.php?&src=/$1.$2&w=1 [R=301,NC,L]
    </ifModule>
    # END wccp_pro_image_protection
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.