V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
YvetteM
V2EX  ›  PHP

Ban IP Address from Specific Referer

  •  
  •   YvetteM · Feb 12, 2012 · 4183 views
    This topic created in 5197 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   ·   5669 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 07:46 · PVG 15:46 · LAX 00:46 · JFK 03:46
    ♥ Do have faith in what you're doing.