Plugin Directory

Changeset 674819


Ignore:
Timestamp:
03/01/2013 01:56:53 AM (13 years ago)
Author:
byrev
Message:

add KNOW_CDN_USER_AGENT photon, smush.it + something they do not know exactly: akamai, cloudfront, netdna, bitgravity, maxcdn, edgecast, limelight (silent force in htaccess; future options)

Location:
byrev-wp-picshield-hotlink-defence/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • byrev-wp-picshield-hotlink-defence/trunk/byrev-wp-picshield-import-admin.php

    r674652 r674819  
    88    $__SOCIAL_SHARE_REFERER = array ('pinterest.com','tumblr.com','facebook.com','plus.google','twitter.com');
    99   
    10     //$__KNOW_CDN_USER_AGENT = array ('photon','akamai','cloudfront','netdna', 'bitgravity', 'maxcdn', 'edgecast', 'limelight');
     10    $__KNOW_CDN_USER_AGENT = array ('photon', 'smush.it', 'akamai', 'cloudfront', 'netdna', 'bitgravity', 'maxcdn', 'edgecast', 'limelight');
    1111    //photon = wordpress images cdn
    12     $__KNOW_CDN_USER_AGENT = array ('photon');
     12    //photon ip : 207.198.112.*
     13    //smush.it ip: 98.139.160.207
    1314   
    1415    $byrev_hotlink_gtfo_default = array(   
     
    207208                $allowed_user_agents = array_merge($allowed_user_agents, $__SOCIAL_SHARE_USER_AGENT);
    208209            }
    209            
    210             #~~~~ merge with known CDN ... future integrate in option;
    211             $allowed_user_agents = array_merge($allowed_user_agents, $__KNOW_CDN_USER_AGENT);
    212            
    213            
     210
    214211            $allowed_user_agents = array_unique($allowed_user_agents); #~~ remove duplicate
    215212           
     
    218215                $htaccess['allowed_user_agents'][] = 'RewriteCond %{HTTP_USER_AGENT} !('.$allowed_user_agents.') [NC]';
    219216            }
     217
     218            #~~~~ allow with known CDN ... future integrate in option; force to allow for the moment.
     219            #$allowed_user_agents = array_merge($allowed_user_agents, $__KNOW_CDN_USER_AGENT);
     220            if (count($__KNOW_CDN_USER_AGENT)>0) {
     221                $allowed_cdn_user_agents = implode("|", $__KNOW_CDN_USER_AGENT);       
     222                $htaccess['allowed_cdn_user_agents'][] = 'RewriteCond %{HTTP_USER_AGENT} !('.$allowed_cdn_user_agents.') [NC]';
     223            }
     224
     225            #~~~
    220226                   
    221227            $htaccess['rewrite_rule'][] = 'RewriteRule (.*) byrev-wp-picshield.php?key='.$data_basic['gtfo_key'].'&src=$1 [L]';
  • byrev-wp-picshield-hotlink-defence/trunk/byrev-wp-picshield-interface.php

    r674652 r674819  
    44Plugin URI: http://wp-picshield.com/
    55Description: Images Hotlink Protection for Your Wordpress Websites; Anti-Hotlinking images/photos - Extensive Plugin for Watermark Pictures and images links redirect to the original page, based on Invalid Refferers and Boot.
    6 Version: v1.8.9h
     6Version: v1.8.9i
    77Author: Emilian Robert Vicol
    88Author URI: http://publicphoto.org/
     
    3434?>
    3535<?php
    36 define('_BYREV_WP_PICSHIELD', '1.8.9h');
     36define('_BYREV_WP_PICSHIELD', '1.8.9i');
    3737
    3838define('_WP_BLOG_SERVER_NAME', $_SERVER['SERVER_NAME']);
  • byrev-wp-picshield-hotlink-defence/trunk/readme.txt

    r674652 r674819  
    55Requires at least: 3.5.1
    66Tested up to: 3.5.1
    7 Stable tag: 1.8.9h
     7Stable tag: 1.8.9i
    88
    99== Description ==
     
    196196*  add alternative redirection for watermark images: 307 Temporary Redirect
    197197
     198= 1.8.9i =
     199
     200*  add KNOW_CDN_USER_AGENT photon, smush.it + something they do not know exactly: akamai, cloudfront, netdna, bitgravity, maxcdn, edgecast, limelight (silent force in htaccess; future options)
     201
    198202== Upgrade Notice ==
    199203
Note: See TracChangeset for help on using the changeset viewer.