Plugin Directory

Changeset 1200980


Ignore:
Timestamp:
07/17/2015 12:44:00 PM (10 years ago)
Author:
codestic
Message:

1.0.2

  • Improved FAQs
  • Added writable check for .htaccess
  • Added WP-CLI installation instructions
  • Added part of Wikipedia about referer spam
Location:
block-referer-spam/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • block-referer-spam/trunk/admin/dashboard.php

    r1200838 r1200980  
    1010        <?php if ($_SESSION['ref-spam-block-flash'] == 'list-updated') : ?>
    1111            <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>
    1313            </div>
    1414
    1515        <?php elseif ($_SESSION['ref-spam-block-flash'] == 'list-not-updated') : ?>
    1616            <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>
    1818            </div>
    1919        <?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>
    2026    <?php endif; ?>
    2127
  • block-referer-spam/trunk/lang/ref-spam-blocker-de_DE.po

    r1200838 r1200980  
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: Fri Jul 17 2015 09:51:48 GMT+0200 (CEST)\n"
    6 "PO-Revision-Date: Fri Jul 17 2015 10:19:03 GMT+0200 (CEST)\n"
     6"PO-Revision-Date: Fri Jul 17 2015 14:39:16 GMT+0200 (CEST)\n"
    77"Last-Translator: codestic <[email protected]>\n"
    88"Language-Team: \n"
     
    2323"X-Generator: Loco - https://localise.biz/"
    2424
    25 #: admin/dashboard.php:2
     25#: ../admin/dashboard.php:2 ../lib/RefSpamBlocker.php:54
    2626msgid "Block Referer Spam"
    2727msgstr "Referrer Spam Blockieren"
    2828
    29 #: admin/dashboard.php:6
     29#: ../admin/dashboard.php:6
    3030msgid "Settings saved."
    3131msgstr "Einstellungen gespeichert."
    3232
    33 #: admin/dashboard.php:12
     33#: ../admin/dashboard.php:12
    3434msgid "List updated."
    3535msgstr "Liste aktualisiert."
    3636
    37 #: admin/dashboard.php:17
     37#: ../admin/dashboard.php:17
    3838msgid "List failed to update."
    3939msgstr "Aktualisierung der Liste fehlgeschlagen."
    4040
    41 #: admin/dashboard.php:40
     41#: ../admin/dashboard.php:24
     42msgid ""
     43"Your .htaccess is not writable. The \"Rewrite Block\" option will most likely "
     44"not work!"
     45msgstr ""
     46"Ihre .htaccess-Datei ist nicht beschreibbar. Die \"Rewrite Blockierung\" wird "
     47"höchstwahrscheinlich nicht funktionieren!"
     48
     49#: ../admin/dashboard.php:46
    4250msgid "Auto Update"
    4351msgstr "Automatische Aktualisierung"
    4452
    45 #: admin/dashboard.php:47
     53#: ../admin/dashboard.php:53
    4654msgid "Yes, once daily"
    4755msgstr "Ja, einmal täglich"
    4856
    49 #: admin/dashboard.php:55
     57#: ../admin/dashboard.php:61
    5058msgid "No, only manual"
    5159msgstr "Nein, nur manuell"
    5260
    53 #: admin/dashboard.php:63
     61#: ../admin/dashboard.php:69
    5462msgid "Block Mode"
    5563msgstr "Blocki-Modus"
    5664
    57 #: admin/dashboard.php:70
     65#: ../admin/dashboard.php:76
    5866msgid "Rewrite Block"
    5967msgstr "Rewrite Blockierung"
    6068
    61 #: admin/dashboard.php:78
     69#: ../admin/dashboard.php:84
    6270msgid "WordPress Block"
    6371msgstr "WordPress Blockierung"
    6472
    65 #: admin/dashboard.php:83
     73#: ../admin/dashboard.php:89
    6674msgid ""
    6775"Rewrite Block is faster and occurs on the web-server level. If you run into "
     
    7381".htaccess-Datei), dann nutzen Sie bitte die WordPress Blockierung."
    7482
    75 #: admin/dashboard.php:89
     83#: ../admin/dashboard.php:95
    7684msgid "Manual Update"
    7785msgstr "Manuelle Aktualisierung"
    7886
    79 #: admin/dashboard.php:92
     87#: ../admin/dashboard.php:98
    8088msgid "Download Updates"
    8189msgstr "Updates Herunterladen"
    8290
    83 #: admin/dashboard.php:95
     91#: ../admin/dashboard.php:101
    8492msgid "Clicking this button will force an update of the referer spam list."
    8593msgstr ""
     
    8795"aus."
    8896
    89 #: admin/dashboard.php:101
     97#: ../admin/dashboard.php:107
    9098msgid "Last Update"
    9199msgstr "Letzte Aktualisierung"
    92100
    93 #: admin/dashboard.php:107
     101#: ../admin/dashboard.php:113
    94102msgid "Never"
    95103msgstr "Niemals"
    96104
    97 #: admin/dashboard.php:117
     105#: ../admin/dashboard.php:123
    98106msgid "Custom Blocks"
    99107msgstr "Eigene Blockierungen"
    100108
    101 #: admin/dashboard.php:124
     109#: ../admin/dashboard.php:130
    102110msgid ""
    103111"If you find that the spammer list does not catch all sites you want to block,"
     
    109117"unseren Servern geteilt werden, um die Liste für alle Nutzer zu verbessern."
    110118
    111 #: admin/dashboard.php:144
     119#: ../admin/dashboard.php:150
    112120msgid "About the Plugin"
    113121msgstr "Über dieses Plugin"
    114122
    115 #: admin/dashboard.php:147
     123#: ../admin/dashboard.php:153
    116124msgid ""
    117125"<b>Block Referer Spam</b> aims at blocking all (or most) websites that use "
     
    124132"zu blockieren."
    125133
    126 #: admin/dashboard.php:149
     134#: ../admin/dashboard.php:155
    127135msgid ""
    128136"This is accomplished by bots that very successfully simulate human behavior. "
     
    133141"Analytics</b>."
    134142
    135 #: admin/dashboard.php:151
     143#: ../admin/dashboard.php:157
    136144msgid ""
    137145"This plugin does not need any further configuration. Once active and auto-"
     
    142150"automatisch über Zeit."
    143151
    144 #: admin/dashboard.php:153
     152#: ../admin/dashboard.php:159
    145153msgid ""
    146154"If you think you found a bug in <b>Block Referer Spam</b>, please contact me "
     
    151159"Stunden zu beheben."
    152160
    153 #: admin/dashboard.php:158
     161#: ../admin/dashboard.php:164
    154162msgid "About the Author"
    155163msgstr "Über den Autor"
    156164
    157 #: admin/dashboard.php:161
     165#: ../admin/dashboard.php:167
    158166msgid ""
    159167"My name is Robin and I am a <b>Web Developer</b>, <b>UI/UX Designer</b> and "
     
    163171"<b>UI/UX Designer</b> und <b><nobr>IT Berater</nobr></b>."
    164172
    165 #: admin/dashboard.php:163
     173#: ../admin/dashboard.php:169
    166174msgid ""
    167175"I am regularly available for interesting freelance projects. If you ever "
     
    171179"Sollten Sie meine professionelle Hilfe benötigen, kontaktieren Sie mich!"
    172180
    173 #: admin/dashboard.php:165
     181#: ../admin/dashboard.php:171
    174182msgid ""
    175183"<b>Email:</b> <a href=\"mailto:[email protected]\">hello@codestic."
     
    180188"com</a><br><b>Webseite:</b> <a href=\"http://codestic.com\" "
    181189"target=\"_blank\">codestic.com</a>"
     190
     191#: ../lib/RefSpamBlocker.php:55
     192msgid "Referer Spam"
     193msgstr "Referrer Spam"
  • block-referer-spam/trunk/lib/RefSpamBlocker.php

    r1200838 r1200980  
    33/**
    44 * RefSpamBlocker
     5 *
     6 * @author codestic <[email protected]>
    57 */
    68
     
    1113        load_textdomain('ref-spam-blocker', REFSPAMBLOCKER_PATH . 'lang/ref-spam-blocker-' . get_locale() . '.mo');
    1214
     15        // register activation
    1316        register_activation_hook($pluginFile, [&$this, 'activate']);
    1417
     18        // add actions
    1519        add_action('init', [&$this, 'init']);
    1620        add_action('admin_init', [$this, 'registerSettings']);
     
    4852    public function createMenu() {
    4953        $hook = add_menu_page(
    50             'Referer Spam Block',
    51             'Referer Spam',
     54            __('Block Referer Spam'),
     55            __('Referer Spam'),
    5256            'manage_options',
    5357            'ref-spam-block/',
  • block-referer-spam/trunk/readme.txt

    r1200838 r1200980  
    44Requires at least: 3.0.1
    55Tested up to: 4.2.2
    6 Stable tag: 1.0.1
     6Stable tag: 1.0.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1414__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.
    1515
     16From [Wikipedia](https://en.wikipedia.org/wiki/Referer_spam):
     17
     18`Referrer spam (also known as log spam or referrer
     19bombing) is a kind of spamdexing (spamming aimed
     20at search engines). The technique involves making
     21repeated web site requests using a fake referer URL
     22to the site the spammer wishes to advertise. Sites that
     23publish their access logs, including referer statistics,
     24will then inadvertently link back to the spammer's site.
     25These links will be indexed by search engines
     26as they crawl the access logs.
     27
     28This benefits the spammer because the free link improves
     29the spammer site's search engine ranking owing
     30to link-counting algorithms that search engines use.`
     31
     32__Features__
    1633* Automatic or manual updates of referer spam list
    1734* Option of adding custom referer spam hosts
    1835* Two methods of blocking: mod_rewrite or WordPress based
    1936
    20 Some of the sites blocked are:
    21 
     37__Examples Blocked__
    2238* semalt
    2339* buttons-for-website
     
    4157== Installation ==
    4258
    43 Either download directly from the WordPress Plugin Repository or manually from GitHub and copy to your plugin directory.
     59To install Block Referer Spam and start cleaning up your Google Analytics:
     60
     611. Install Block Referer Spam automatically or by uploading the ZIP file.
     622. Activate the plugin through the 'Plugins' menu in WordPress.
     633. Block Referer Spam is now activated. Go to the "Referer Spam" menu and start review your options.
     643. You are not protected!
     65
     66__Using WP-CLI__
     67`wp plugin install block-referer-spam --activate`
    4468
    4569== Frequently Asked Questions ==
     70
     71= What sites are blocked? =
     72
     73To 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.
    4674
    4775= I still see those websites in my statistics! =
     
    6492== Changelog ==
    6593
     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
    66100= 1.0.1 =
    67101* Added German localization
  • block-referer-spam/trunk/ref-spam-blocker.php

    r1200838 r1200980  
    55Description: Protects you from referer spam from accessing your site and cleans up your Google Analytics in the process.
    66Author: codestic
    7 Version: 1.0.1
     7Version: 1.0.2
    88Author URI: http://codestic.com
    99Text Domain: ref-spam-blocker
     
    1313if (defined('ABSPATH') && !class_exists('RefSpamBlocker')) {
    1414    if (!defined('REFSPAMBLOCKER_VERSION')) {
    15         define('REFSPAMBLOCKER_VERSION', '1.0.1');
     15        define('REFSPAMBLOCKER_VERSION', '1.0.2');
    1616    }
    1717
Note: See TracChangeset for help on using the changeset viewer.