Print Page | Close Window

Redirecting Banned IP's

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=25038
Printed Date: 29 March 2026 at 11:45pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Redirecting Banned IP's
Posted By: Bill650
Subject: Redirecting Banned IP's
Date Posted: 19 December 2007 at 7:32pm
Is there anyway that I can Redirect banned IP's and Ranges to a Error 404 (Cannot Display) page, when they try to access the forum?
I am running Version 9.06 Access
 
Any help with this will be greatly appreciated!
Thanks in advance
Bill P



Replies:
Posted By: Scotty32
Date Posted: 19 December 2007 at 10:25pm
thats quite easy. Simply find the part as shown below (around line 178)

'******************************************

'***       Redirect if forum is closed   ****
'******************************************
 
'If the forums are closed redirect to the forums closed page
If blnForumClosed AND blnDisplayForumClosed = False AND blnAdmin = False Then
     
    'Reset server objects
    Call closeDatabase()
     
    'Redirect to the forum closed page
    Response.Redirect("forum_closed.asp" & strQsSID1)
End If


and simply add below it the following:

if blnBanned or bannedIP() then
    'Reset server objects
    Call closeDatabase()
     
    'Redirect to the missing page
    Response.Redirect("/404.asp")
end if


change the page to what ever you want.


-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: Bill650
Date Posted: 19 December 2007 at 11:17pm

Thanks Scotty!! It works great!

I do appreciate all your help!

Bill




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net