Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-05-2010, 09:02 PM   PM User | #1
slinky22
New to the CF scene

 
Join Date: Oct 2010
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
slinky22 is an unknown quantity at this point
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.
slinky22 is offline   Reply With Quote
Old 10-06-2010, 12:01 AM   PM User | #2
bcarl314
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
bcarl314 will become famous soon enough
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");
}
?>
bcarl314 is offline   Reply With Quote
Users who have thanked bcarl314 for this post:
slinky22 (10-06-2010)
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:54 PM.


Advertisement
Log in to turn off these ads.