cyberline/tor-detect 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cyberline/tor-detect

最新稳定版本:v1.2

Composer 安装命令:

composer require cyberline/tor-detect

包简介

Class to determine if Remote User is using the TOR Network

README 文档

README

Scrutinizer Code Quality Build Status SensioLabsInsight Latest Stable Version Total Downloads Latest Unstable Version License

Tor is collaborative network that allows people to access sites hiding their original IP addresses to avoid being tracked. Many sites do not like to allow accesses of users that use the Tor network, as users may use anonymous access perform illegal activities. This class provides a solution that allows to determine if an user is accessing a site using the Tor network. This allows a PHP site to disallow the user to access a site using the Tor network.

Example

<?php
require_once 'src/TorDetect.php';

try {
    $instance = \TorDetect\TorDetect::getInstance();
    
    // check current users ip and
    // return 1 or 0
    print intval($instance->isTorActive());

    // check ip of another user
    print intval($instance->setTarget('1.2.3.4')->isTorActive());
} catch (\Exception $e) {
    print $e->getMessage();
}

统计信息

  • 总下载量: 77
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 5
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2014-11-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固