View Full Version : Pesky banned forum member

10-05-2010, 10:02 PM
(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.

10-06-2010, 01:01 AM
Adding the following to your config.php file should do the trick...

if($_SERVER['REMOTE_ADDR']=="") {
header("Location: http://www.example.com");