Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2010
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Angry Pesky banned forum member

    (posted by accident in the Java forum)
    Hello good folks of CodingForums.com. I'm not a coder, but I have a problem that perhaps one of you might be interested in helping me solve.
    I run a forum (using SimpleMachinesForum software) and one of the members started vandalizing it. I banned him, by adding his IP address to the ban list. I just found out today (buy looking at a log file) that he is accessing the site many times daily as a guest, and frankly, the guy's such a jerk, I (at first) wanted to block him.

    I used a "deny from xxx.xx.xxx" command on the htaccess file... BUT....
    This guy is a REAL jerk. I mean... seriously.

    So here's what I want to do, and please tell me if (and how) it is possible:

    Whenever he tries to access my forum, I want him, and ONLY him, to be re-directed to some embarrassing website (something with a very loud autoplay file or multiple windows).

    Can this be done? My coding knowledge is ZERO, but the guy I run the forum with has some basic skills.

    Many thanks to any who respond.

  • #2
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    Adding the following to your config.php file should do the trick...

    Code:
    <?php
    if($_SERVER['REMOTE_ADDR']=="123.45.67.89") {
        header("Location: http://www.example.com");
    }
    ?>

  • Users who have thanked bcarl314 for this post:

    slinky22 (10-06-2010)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •