blackmodule This module protects your website content from being copied.

  1. Installation
  2. Resources

The following arrangements will not guarantee the safety of the content, and are not recommended for old popular sites, but for new sites it can be useful:

  • Disabling shortcut keys Ctrl+C, Ctrl+X, Ctrl+A, Ctrl+U
  • Disabling the context menu on the site
  • Disabling .oncopy and .ondragstart js events
  • When the visitor try to copy a large amount of text (more then 200 characters) or try to view the source code current ip is added to the list of banned and cookies is installed in the browser.
  • If visitors User-Agent found in the list of known spam bots and parsers, the current ip is added to the list of banned.

Installation

  1. Add the table 'banned' in your database (import the file sql/banned.sql), do not forget to add a table prefix, if you use it in your application.
  2. Extract the files into your modules folder (for example, /protected/modules/).
  3. Edit your configuration file to register the module:
'modules'=>array(
	    ...
		'black'
	),
  1. Add widget to your pages:
<? Yii::app()->getModule('black'); $this->widget('NoCopyWidget'); ?>

Resources

4 0
12
533
Yii Version: 1.1
License: BSD-2-Clause
Category: Security
    Developed by: Dismal Dismal
    Created: Feb 25, 2013
    Updated: 13 years ago

    Downloads

    show all