Changeset 1200980
- Timestamp:
- 07/17/2015 12:44:00 PM (10 years ago)
- Location:
- block-referer-spam/trunk
- Files:
-
- 6 edited
-
admin/dashboard.php (modified) (1 diff)
-
lang/ref-spam-blocker-de_DE.mo (modified) (previous)
-
lang/ref-spam-blocker-de_DE.po (modified) (12 diffs)
-
lib/RefSpamBlocker.php (modified) (3 diffs)
-
readme.txt (modified) (4 diffs)
-
ref-spam-blocker.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
block-referer-spam/trunk/admin/dashboard.php
r1200838 r1200980 10 10 <?php if ($_SESSION['ref-spam-block-flash'] == 'list-updated') : ?> 11 11 <div id="message" class="updated"> 12 <p><strong><?php _e('List updated.' ) ?></strong></p>12 <p><strong><?php _e('List updated.', 'ref-spam-blocker') ?></strong></p> 13 13 </div> 14 14 15 15 <?php elseif ($_SESSION['ref-spam-block-flash'] == 'list-not-updated') : ?> 16 16 <div id="message" class="error"> 17 <p><strong><?php _e('List failed to update.' ) ?></strong></p>17 <p><strong><?php _e('List failed to update.', 'ref-spam-blocker') ?></strong></p> 18 18 </div> 19 19 <?php endif; ?> 20 <?php endif; ?> 21 22 <?php if (get_option('ref-spam-block-mode', 'rewrite') == 'rewrite' && (!is_writable(get_home_path() . '.htaccess'))) : ?> 23 <div id="message" class="error"> 24 <p><strong><?php _e('Your .htaccess is not writable. The "Rewrite Block" option will most likely not work!', 'ref-spam-blocker') ?></strong></p> 25 </div> 20 26 <?php endif; ?> 21 27 -
block-referer-spam/trunk/lang/ref-spam-blocker-de_DE.po
r1200838 r1200980 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: Fri Jul 17 2015 09:51:48 GMT+0200 (CEST)\n" 6 "PO-Revision-Date: Fri Jul 17 2015 1 0:19:03GMT+0200 (CEST)\n"6 "PO-Revision-Date: Fri Jul 17 2015 14:39:16 GMT+0200 (CEST)\n" 7 7 "Last-Translator: codestic <[email protected]>\n" 8 8 "Language-Team: \n" … … 23 23 "X-Generator: Loco - https://localise.biz/" 24 24 25 #: admin/dashboard.php:225 #: ../admin/dashboard.php:2 ../lib/RefSpamBlocker.php:54 26 26 msgid "Block Referer Spam" 27 27 msgstr "Referrer Spam Blockieren" 28 28 29 #: admin/dashboard.php:629 #: ../admin/dashboard.php:6 30 30 msgid "Settings saved." 31 31 msgstr "Einstellungen gespeichert." 32 32 33 #: admin/dashboard.php:1233 #: ../admin/dashboard.php:12 34 34 msgid "List updated." 35 35 msgstr "Liste aktualisiert." 36 36 37 #: admin/dashboard.php:1737 #: ../admin/dashboard.php:17 38 38 msgid "List failed to update." 39 39 msgstr "Aktualisierung der Liste fehlgeschlagen." 40 40 41 #: admin/dashboard.php:40 41 #: ../admin/dashboard.php:24 42 msgid "" 43 "Your .htaccess is not writable. The \"Rewrite Block\" option will most likely " 44 "not work!" 45 msgstr "" 46 "Ihre .htaccess-Datei ist nicht beschreibbar. Die \"Rewrite Blockierung\" wird " 47 "höchstwahrscheinlich nicht funktionieren!" 48 49 #: ../admin/dashboard.php:46 42 50 msgid "Auto Update" 43 51 msgstr "Automatische Aktualisierung" 44 52 45 #: admin/dashboard.php:4753 #: ../admin/dashboard.php:53 46 54 msgid "Yes, once daily" 47 55 msgstr "Ja, einmal täglich" 48 56 49 #: admin/dashboard.php:5557 #: ../admin/dashboard.php:61 50 58 msgid "No, only manual" 51 59 msgstr "Nein, nur manuell" 52 60 53 #: admin/dashboard.php:6361 #: ../admin/dashboard.php:69 54 62 msgid "Block Mode" 55 63 msgstr "Blocki-Modus" 56 64 57 #: admin/dashboard.php:7065 #: ../admin/dashboard.php:76 58 66 msgid "Rewrite Block" 59 67 msgstr "Rewrite Blockierung" 60 68 61 #: admin/dashboard.php:7869 #: ../admin/dashboard.php:84 62 70 msgid "WordPress Block" 63 71 msgstr "WordPress Blockierung" 64 72 65 #: admin/dashboard.php:8373 #: ../admin/dashboard.php:89 66 74 msgid "" 67 75 "Rewrite Block is faster and occurs on the web-server level. If you run into " … … 73 81 ".htaccess-Datei), dann nutzen Sie bitte die WordPress Blockierung." 74 82 75 #: admin/dashboard.php:8983 #: ../admin/dashboard.php:95 76 84 msgid "Manual Update" 77 85 msgstr "Manuelle Aktualisierung" 78 86 79 #: admin/dashboard.php:9287 #: ../admin/dashboard.php:98 80 88 msgid "Download Updates" 81 89 msgstr "Updates Herunterladen" 82 90 83 #: admin/dashboard.php:9591 #: ../admin/dashboard.php:101 84 92 msgid "Clicking this button will force an update of the referer spam list." 85 93 msgstr "" … … 87 95 "aus." 88 96 89 #: admin/dashboard.php:10197 #: ../admin/dashboard.php:107 90 98 msgid "Last Update" 91 99 msgstr "Letzte Aktualisierung" 92 100 93 #: admin/dashboard.php:107101 #: ../admin/dashboard.php:113 94 102 msgid "Never" 95 103 msgstr "Niemals" 96 104 97 #: admin/dashboard.php:117105 #: ../admin/dashboard.php:123 98 106 msgid "Custom Blocks" 99 107 msgstr "Eigene Blockierungen" 100 108 101 #: admin/dashboard.php:124109 #: ../admin/dashboard.php:130 102 110 msgid "" 103 111 "If you find that the spammer list does not catch all sites you want to block," … … 109 117 "unseren Servern geteilt werden, um die Liste für alle Nutzer zu verbessern." 110 118 111 #: admin/dashboard.php:144119 #: ../admin/dashboard.php:150 112 120 msgid "About the Plugin" 113 121 msgstr "Über dieses Plugin" 114 122 115 #: admin/dashboard.php:147123 #: ../admin/dashboard.php:153 116 124 msgid "" 117 125 "<b>Block Referer Spam</b> aims at blocking all (or most) websites that use " … … 124 132 "zu blockieren." 125 133 126 #: admin/dashboard.php:149134 #: ../admin/dashboard.php:155 127 135 msgid "" 128 136 "This is accomplished by bots that very successfully simulate human behavior. " … … 133 141 "Analytics</b>." 134 142 135 #: admin/dashboard.php:151143 #: ../admin/dashboard.php:157 136 144 msgid "" 137 145 "This plugin does not need any further configuration. Once active and auto-" … … 142 150 "automatisch über Zeit." 143 151 144 #: admin/dashboard.php:153152 #: ../admin/dashboard.php:159 145 153 msgid "" 146 154 "If you think you found a bug in <b>Block Referer Spam</b>, please contact me " … … 151 159 "Stunden zu beheben." 152 160 153 #: admin/dashboard.php:158161 #: ../admin/dashboard.php:164 154 162 msgid "About the Author" 155 163 msgstr "Über den Autor" 156 164 157 #: admin/dashboard.php:161165 #: ../admin/dashboard.php:167 158 166 msgid "" 159 167 "My name is Robin and I am a <b>Web Developer</b>, <b>UI/UX Designer</b> and " … … 163 171 "<b>UI/UX Designer</b> und <b><nobr>IT Berater</nobr></b>." 164 172 165 #: admin/dashboard.php:163173 #: ../admin/dashboard.php:169 166 174 msgid "" 167 175 "I am regularly available for interesting freelance projects. If you ever " … … 171 179 "Sollten Sie meine professionelle Hilfe benötigen, kontaktieren Sie mich!" 172 180 173 #: admin/dashboard.php:165181 #: ../admin/dashboard.php:171 174 182 msgid "" 175 183 "<b>Email:</b> <a href=\"mailto:[email protected]\">hello@codestic." … … 180 188 "com</a><br><b>Webseite:</b> <a href=\"http://codestic.com\" " 181 189 "target=\"_blank\">codestic.com</a>" 190 191 #: ../lib/RefSpamBlocker.php:55 192 msgid "Referer Spam" 193 msgstr "Referrer Spam" -
block-referer-spam/trunk/lib/RefSpamBlocker.php
r1200838 r1200980 3 3 /** 4 4 * RefSpamBlocker 5 * 6 * @author codestic <[email protected]> 5 7 */ 6 8 … … 11 13 load_textdomain('ref-spam-blocker', REFSPAMBLOCKER_PATH . 'lang/ref-spam-blocker-' . get_locale() . '.mo'); 12 14 15 // register activation 13 16 register_activation_hook($pluginFile, [&$this, 'activate']); 14 17 18 // add actions 15 19 add_action('init', [&$this, 'init']); 16 20 add_action('admin_init', [$this, 'registerSettings']); … … 48 52 public function createMenu() { 49 53 $hook = add_menu_page( 50 'Referer Spam Block',51 'Referer Spam',54 __('Block Referer Spam'), 55 __('Referer Spam'), 52 56 'manage_options', 53 57 'ref-spam-block/', -
block-referer-spam/trunk/readme.txt
r1200838 r1200980 4 4 Requires at least: 3.0.1 5 5 Tested up to: 4.2.2 6 Stable tag: 1.0. 16 Stable tag: 1.0.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 14 14 __Block Referer Spam__ aims at blocking all (or most) websites that use Referer Spam to promote their – often more than dodgy – website content. This is accomplished by bots that very successfully simulate human behavior. They do this so well, that they even show up in __Google Analytics__. 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. 15 15 16 From [Wikipedia](https://en.wikipedia.org/wiki/Referer_spam): 17 18 `Referrer spam (also known as log spam or referrer 19 bombing) is a kind of spamdexing (spamming aimed 20 at search engines). The technique involves making 21 repeated web site requests using a fake referer URL 22 to the site the spammer wishes to advertise. Sites that 23 publish their access logs, including referer statistics, 24 will then inadvertently link back to the spammer's site. 25 These links will be indexed by search engines 26 as they crawl the access logs. 27 28 This benefits the spammer because the free link improves 29 the spammer site's search engine ranking owing 30 to link-counting algorithms that search engines use.` 31 32 __Features__ 16 33 * Automatic or manual updates of referer spam list 17 34 * Option of adding custom referer spam hosts 18 35 * Two methods of blocking: mod_rewrite or WordPress based 19 36 20 Some of the sites blocked are: 21 37 __Examples Blocked__ 22 38 * semalt 23 39 * buttons-for-website … … 41 57 == Installation == 42 58 43 Either download directly from the WordPress Plugin Repository or manually from GitHub and copy to your plugin directory. 59 To install Block Referer Spam and start cleaning up your Google Analytics: 60 61 1. Install Block Referer Spam automatically or by uploading the ZIP file. 62 2. Activate the plugin through the 'Plugins' menu in WordPress. 63 3. Block Referer Spam is now activated. Go to the "Referer Spam" menu and start review your options. 64 3. You are not protected! 65 66 __Using WP-CLI__ 67 `wp plugin install block-referer-spam --activate` 44 68 45 69 == Frequently Asked Questions == 70 71 = What sites are blocked? = 72 73 To give you the least of an headache, this plugin is not using one, but indeed several sources of referer spam lists. Our severs merge multiple lists every couple hours to provide you with the best possible protection. 46 74 47 75 = I still see those websites in my statistics! = … … 64 92 == Changelog == 65 93 94 = 1.0.2 = 95 * Improved FAQs 96 * Added writable check for .htaccess 97 * Added WP-CLI installation instructions 98 * Added part of Wikipedia about referer spam 99 66 100 = 1.0.1 = 67 101 * Added German localization -
block-referer-spam/trunk/ref-spam-blocker.php
r1200838 r1200980 5 5 Description: Protects you from referer spam from accessing your site and cleans up your Google Analytics in the process. 6 6 Author: codestic 7 Version: 1.0. 17 Version: 1.0.2 8 8 Author URI: http://codestic.com 9 9 Text Domain: ref-spam-blocker … … 13 13 if (defined('ABSPATH') && !class_exists('RefSpamBlocker')) { 14 14 if (!defined('REFSPAMBLOCKER_VERSION')) { 15 define('REFSPAMBLOCKER_VERSION', '1.0. 1');15 define('REFSPAMBLOCKER_VERSION', '1.0.2'); 16 16 } 17 17
Note: See TracChangeset
for help on using the changeset viewer.