Changeset 1580313
- Timestamp:
- 01/23/2017 01:14:07 PM (8 years ago)
- Location:
- block-referer-spam/trunk
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
block-referer-spam/trunk
-
Property
svn:ignore
set to
deploy.sh
README.md
.git
.gitignore
-
Property
svn:ignore
set to
-
block-referer-spam/trunk/admin/_sidebar.php
r1370866 r1580313 9 9 <p><?php _e('This plugin does not need any further configuration. Once active and auto-update is enabled, you will barely see any of those nasty spammers any more.', 'ref-spam-blocker'); ?></p> 10 10 11 <p><?php _e('If you think you found a bug in <b>Block Referer Spam</b>, please contact me and I should be able to fix it within 48 hours.', 'ref-spam-blocker'); ?></p>11 <p><?php _e('If you think you found a bug in <b>Block Referer Spam</b>, please contact s.', 'ref-spam-blocker'); ?></p> 12 12 13 13 <hr> 14 14 15 <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank" class="ref-block-donate-form"> 16 <p><?php _e('In case you really like my plugin, feel free to buy me a coffee ☕ or beer 🍺', 'ref-spam-blocker'); ?></p> 15 <h3>Block Refer Spam Pro</h3> 17 16 18 <input type="hidden" name="cmd" value="_s-xclick"> 19 <input type="hidden" name="hosted_button_id" value="P24D3Z3E526BQ"> 20 <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> 21 <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> 17 <p><strong>Need to sync your custom block lists across all of your sites? Want access to more curated block lists?</strong></p> 22 18 23 <p><?php _e('You can also make my day by submitting a positive review on <b><a href="https://wordpress.org/support/view/plugin-reviews/block-referer-spam" target="_blank">WordPress.org</a>!</b>', 'ref-spam-blocker'); ?></p> 24 </form> 19 <p><a href="https://www.blockreferspam.com/pro/" target="_blank">Upgrade to Block Refer Spam Pro</a>, starting at only $2/mo</p> 25 20 </div> 26 21 </div> 22 -
block-referer-spam/trunk/admin/dashboard.php
r1538647 r1580313 14 14 <?php endif; ?> 15 15 <?php endif; ?> 16 17 18 19 20 21 22 23 24 25 26 27 28 16 29 17 30 <?php if (get_option('ref-spam-block-mode', 'rewrite') == 'rewrite' && (!is_writable(get_home_path() . '.htaccess'))) : ?> … … 41 54 42 55 <!-- SETTINGS --> 56 57 58 59 60 61 62 63 64 65 66 67 68 69 43 70 <tr> 44 71 <th> -
block-referer-spam/trunk/lib/RefSpamBlocker.php
r1538647 r1580313 114 114 __('All Blocked Sites', 'ref-spam-blocker'), 115 115 'manage_options', 116 'ref-spam-list/', array(&$this, 'adminBlockedList') 116 'ref-spam-list/', 117 array(&$this, 'adminBlockedList') 117 118 ); 119 120 121 122 123 124 125 126 127 128 129 118 130 119 131 add_action("load-{$hook}", array(&$this, 'updateSettings')); … … 129 141 register_setting('ref-spam-block-settings', 'ref-spam-custom-blocks'); 130 142 register_setting('ref-spam-block-settings', 'ref-spam-block-mode'); 143 144 131 145 } 132 146 … … 165 179 $this->resetHtaccess(); 166 180 } 181 182 183 184 185 167 186 } 168 187 } … … 228 247 file_put_contents($htaccess, $content); 229 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 230 303 return true; 231 304 } … … 276 349 277 350 // create context to send custom blocks back home 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 278 369 $opts = array( 279 370 'http' => 280 371 array( 281 372 'method' => 'PUT', 282 'header' => array( 283 'Content-type: application/json', 284 'X-Client-Version: ' . REFSPAMBLOCKER_VERSION, 285 'X-URL-Hash: ' . md5(get_site_url()), 286 'X-User-Agent: Block Referer Spam v' . REFSPAMBLOCKER_VERSION 287 ), 373 'header' => $header_array, 288 374 'content' => $customBlocks, 289 375 'timeout' => 30 … … 310 396 }; 311 397 398 399 400 401 402 403 404 312 405 // save list 313 406 update_option('ref-blocker-list', $formatted_list); 407 314 408 315 409 // save last updated stamp … … 431 525 432 526 /** 527 528 529 530 531 532 533 433 534 * dailyCronjob() 434 535 * Executed daily to update list and htaccess file -
block-referer-spam/trunk/readme.txt
r1553061 r1580313 3 3 Tags: spam, referer, semalt, buttons-for-website, floating-share-buttons, 4webmaster, ilovevitaly, referal, referral, analytics, analytics spam, referer spam, referrer spam, referal spam, referral spam, anti referer, anti referrer, anti referral, block analytics, anti-spam, spambot, spam-bot, spam bot, bot block, google spam, seo spam, referer attack, referral attack, referer blockieren, referrer blockieren, spam blockieren, bot filter, spam attack 4 4 Requires at least: 3.0.2 5 Tested up to: 4. 6.16 Stable tag: 1.1. 8.55 Tested up to: 4..1 6 Stable tag: 1.1. 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 36 36 * Two methods of blocking: mod_rewrite or WordPress based 37 37 38 39 40 41 42 43 44 38 45 __Examples Blocked__ 39 46 … … 45 52 * ... and many more! 46 53 47 If you think you found a bug in Referer Spam Blocker, please contact me and I should be able to fix it within 48 hours. Further, if you want to contribute, feel free! 48 49 Moreover, if you have issues with this plugin, please contact me over my website or the support forum here. 54 If you think you found a bug in Referer Spam Blocker, please contact us! Further, if you want to contribute, feel free! 50 55 51 56 Anything else, please get in touch! … … 94 99 95 100 == Changelog == 101 102 103 96 104 97 105 = 1.1.8.5 = -
block-referer-spam/trunk/ref-spam-blocker.php
r1538647 r1580313 8 8 Description: Prevents referer spam from accessing your site and cleans up your Google Analytics in the process. 9 9 Author: supersoju, codestic 10 Version: 1.1. 8.510 Version: 1.1. 11 11 Author URI: http://supersoju.com 12 12 Text Domain: ref-spam-blocker … … 36 36 37 37 define('REFSPAMBLOCKER_PLUGIN_URL', 'https://wordpress.org/plugins/block-referer-spam/'); 38 define('REFSPAMBLOCKER_LIST_URL', 'http://blockreferspam.com'); 38 define('REFSPAMBLOCKER_LIST_URL', 'https://blockreferspam.com'); 39 define('REFSPAMBLOCKER_KEY', '586d3df5da9b55.70906614'); 40 39 41 } 40 42
Note: See TracChangeset
for help on using the changeset viewer.