YvetteM
V2EX  ›  PHP

Ban IP Address from Specific Referer

  •  
  •   YvetteM · Feb 12, 2012 · 4227 views
    This topic created in 5214 days ago, the information mentioned may be changed or developed.
    /etc/php.ini 中修改
    auto_prepend_file "/opt/php/block.php"

    或者在.htaccess里添加
    php_value auto_prepend_file prepend.php

    block.php 内容

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2742 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 66ms · UTC 02:21 · PVG 10:21 · LAX 19:21 · JFK 22:21
    ♥ Do have faith in what you're doing.