Announcement

Collapse
No announcement yet.

Help Please!!!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help Please!!!

    I am trying to do a mod_rewrite on my forums to stop email harvesters and certain spiders. The code I am using is this :
    PHP Code:
    <?php
    $darkness 
    file('/home/madmadd/public_html/ban-ip/ban-ip.txt');
    $ua $HTTP_SERVER_VARS['HTTP_USER_AGENT'];
    $ip $REMOTE_ADDR ;

    $punish 0;
    if ( 
    $ua == "" )
    {
    $punish ;
    }

    foreach( 
    $darkness as $blockip )
    {
    $blockip rtrim$blockip ) ;
    if (
    stristr($ip$blockip))
    $punish ;
    }

    if ( 
    $punish == )
    {
    echo 
    "<HTML><head><title>Access Denied</title></head>
    <p>The software you are using to access our website is not allowed.</p>
    }
    ?>
    It's instructions are as follows
    Our php security gate, which blocks from the real time blackhole list and any User Agent that doesn't identify itself, goes at the top of your home index.php file:
    My problem is where can I put this in the index.php for my vBulletin? Or if not there where do I put this?


    Got a Boxer?
    BoxerTalk

  • #2
    N/M...figured it out.

    Got a Boxer?
    BoxerTalk

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X