PHP Classes

WRASA Security Alarm: Detect and prevent robots that crawl sites

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 190 All time: 8,596 This week: 72Up
Version License PHP version Categories
wrasa-security-alarm 1.0.1Custom (specified...5PHP 5, Security
Description 

Author

This package can detect and prevent robots that crawl sites.

It can check the IP address and user agent of sites accessing the current page determine if it is a real user navigating, as search engine bot crawling or some other kind of type of bot crawling the site.

It can keep track of the count of accesses of users from the same IP address that may be bots accessing site pages to crawl its content.

Suspicious bots that make excessive accesses are redirected to a block page.

Picture of Ki Shing Yeung
  Performance   Level  

 

Example

<?php
/**
 * Protect Page
 *
 * This is optional, it is designed to protect the page only, not JavaScript.
 *
 * @package WRASA
 * @author WRASA Dev Team
 * @copyright Copyright (c) 2016 - 2017, Cloud Design Limited (http://www.cloud-design.hk/)
 * @license http://opensource.org/licenses/MIT MIT License
 * @link http://wrasa.codage.tech
 * @version 1.0.1
 * @filesource
 */

/* Include Files */
require_once dirname(__DIR__).'/core/language/en_lang.php'; // For exit message.
require_once dirname(__DIR__).'/core/Config.php';
require_once
dirname(__DIR__).'/core/libraries/BrowserDetection.php';
require_once
dirname(__DIR__).'/core/libraries/WrasaFunc.php';
require_once
dirname(__DIR__).'/core/libraries/WrasaCore.php';

/* New Wrasa Object */
$wscsa = new WrasaCore;
$wscsa->protect_pg($config, $lang);


Details

What is WRASA?

WRASA is a project of Cloud Design Limited, it is composed of Web Robot Analytics and Security Alarm. And its purpose is to analyse the activities of web robots (Googlebot, Bingbot...etc.) on your websites, and protect the source code of your web-based applications.

If you want to view more details, please go to http://wrasa.codage.tech

WRASA - Security Alarm

WRASA ? Security Alarm is a kind of web plug-in and 100% free of charge. It works like CCTV and Alarm System, that assists in identifying and deterring people who attempt to copy or analyse the source code of your web-based applications.

Requirements

  • Linux platform
  • PHP version 5.6 or newer is recommended.

It should work on 5.3.7 as well, but we strongly advise you NOT to run such old versions of PHP, because of potential security and performance issues, as well as missing features.

* Quick Install *

  • Step 1 : Extract the wrasa-SecurityAlarm-x.x.zip file.
  • Step 2 : Move the wrasa-SecurityAlarm-x.x folder to its intended location. (e.g. http://example.com/assets/)
  • Step 3 : Select the page you want to protect, then open and edit like this:

    <!DOCTYPE html> <?php require_once "var/www/example.com/assets/wrasa-SecurityAlarm-x.x/api/ProtectPG.php"; ?> <html lang="en"> <head> ... <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function(){ $.ajax({ url:'http://example.com/assets/wrasa-SecurityAlarm-x.x/protect.js', dataType:'script' }); }); </script> </head>

  • Step 4 : Press F12. If you see the Warning page, that means installed successfully.

* Configuration *

If you want to change the default setting, please open the core/Config.php and modify yourself.

* Attention *

  • If you want to change the default setting, please open the Config.php and modify yourself.
  • If you want to check the collected data, please go to core/data folder.
  • DON'T REMOVE core/data/default folder.
  • ENSURE the BlockList.json and SuspectList.json can be written.

* Changelog *

* Version 1.0.1 *

Fixed : Cannot block the IP address that has appeared in BlockList.json


  Files folder image Files (49)  
File Role Description
Files folder imageapi (3 files)
Files folder imagecore (2 files, 3 directories)
Files folder imagenotice (2 files, 1 directory)
Accessible without login Plain text file .htaccess Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:190
This week:0
All time:8,596
This week:72Up