Changeset 674819
- Timestamp:
- 03/01/2013 01:56:53 AM (13 years ago)
- Location:
- byrev-wp-picshield-hotlink-defence/trunk
- Files:
-
- 3 edited
-
byrev-wp-picshield-import-admin.php (modified) (3 diffs)
-
byrev-wp-picshield-interface.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
byrev-wp-picshield-hotlink-defence/trunk/byrev-wp-picshield-import-admin.php
r674652 r674819 8 8 $__SOCIAL_SHARE_REFERER = array ('pinterest.com','tumblr.com','facebook.com','plus.google','twitter.com'); 9 9 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'); 11 11 //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 13 14 14 15 $byrev_hotlink_gtfo_default = array( … … 207 208 $allowed_user_agents = array_merge($allowed_user_agents, $__SOCIAL_SHARE_USER_AGENT); 208 209 } 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 214 211 $allowed_user_agents = array_unique($allowed_user_agents); #~~ remove duplicate 215 212 … … 218 215 $htaccess['allowed_user_agents'][] = 'RewriteCond %{HTTP_USER_AGENT} !('.$allowed_user_agents.') [NC]'; 219 216 } 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 #~~~ 220 226 221 227 $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 4 4 Plugin URI: http://wp-picshield.com/ 5 5 Description: 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.9 h6 Version: v1.8.9i 7 7 Author: Emilian Robert Vicol 8 8 Author URI: http://publicphoto.org/ … … 34 34 ?> 35 35 <?php 36 define('_BYREV_WP_PICSHIELD', '1.8.9 h');36 define('_BYREV_WP_PICSHIELD', '1.8.9i'); 37 37 38 38 define('_WP_BLOG_SERVER_NAME', $_SERVER['SERVER_NAME']); -
byrev-wp-picshield-hotlink-defence/trunk/readme.txt
r674652 r674819 5 5 Requires at least: 3.5.1 6 6 Tested up to: 3.5.1 7 Stable tag: 1.8.9 h7 Stable tag: 1.8.9i 8 8 9 9 == Description == … … 196 196 * add alternative redirection for watermark images: 307 Temporary Redirect 197 197 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 198 202 == Upgrade Notice == 199 203
Note: See TracChangeset
for help on using the changeset viewer.