YvetteM
V2EX  ›  PHP

Ban IP Address from Specific Referer

  •  
  •   YvetteM · Feb 12, 2012 · 4213 views
    This topic created in 5209 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   ·   3120 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 00:06 · PVG 08:06 · LAX 17:06 · JFK 20:06
    ♥ Do have faith in what you're doing.