Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
ASPProtect Full 7.x (Mods, Updates, Add On's)
 CJWSoft Support Info : ASPProtect Full 7.x (Mods, Updates, Add On's)
Subject Info: (FREE) IP Restriction Mod A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
cwilliams
Admin Group
Admin Group
Avatar
CJWSoft Web Software Developer

Joined: April/06/2004
Online Status: Offline
Info: 1769
Added: June/19/2007 at 2:57pm | IP Logged Quote cwilliams

(IP_Restriction_Mod) for ASPProtect Version 7.x

This will add an IP Banning interface to the application.



This Mod must be requested.
Contact us via a forum PM or via the contact form on the CJWSoft.com site. You will need to provide your order number so we can verify you purchased the application.



Directions:
Back up your existing ASPProtect installation.

Add a new table to your ASPProtect Database
Call it "ASPP_Banned_List"

Now, in that new Table add two new fields.


For an MSAccess Database

Banned_ID (Autonumber) and make it a primary key
IP_Address (text field) with a size of 30 characters


For a MSSQL Database

Banned_ID (int) and make it an (indentity/seed/increment 1) and make a primary key
IP_Address (nvarchar field) with a size of 30 characters


once that is done

Copy all the new ".asp" pages into your site. There is also an image that goes in the images folder


Edit the "config_inc.asp" file

Find this section of code

tbl_label_config = "ASPP_Config"
tbl_label_users = "ASPP_Users"
tbl_label_groups = "ASPP_Groups"

And add this code red right underneath it.

Dim tbl_label_banned
tbl_label_banned = "ASPP_Banned_List"


Edit the "check_user_inc.asp" file

Near the top you will 2 server side includes.. one to the config_inc.asp, one to the dataconn_inc.asp file.

put this line of code in red right under them

<!--#INCLUDE FILE="scripts/ipfilter_inc.asp"-->


Now edit the "password_admin/header_inc.asp" file

Find this section of code.

<% If UseLogFiles = True Then %>
<td valign="bottom"><a href="view_logs.asp"><img src="../images/logfiles.gif" border="0" alt="Log Files"></a><% If PageButton = "logfiles" Then %><br><img src="../images/tab-spacer.gif" border="0" alt="Log Files"><% End If %></td>
<% End If %>

And add this code red right underneath it.

<td valign="bottom"><a href="ipbanning.asp"><img src="../images/banning.gif" border="0" alt="Banning"></a><% If PageButton = "banning" Then %><br><img src="../images/tab-spacer.gif" border="0" alt="Log Files"><% End If %></td>


That's it...Go to the admin area and you will have a new tab called "banning" ...

If you want to edit the message shown when a IP ban occurs carefully edit the "scripts/ipfilter_inc.asp" file
right near the top you'll see a response.write statement and that is the area where you can put whatever you want.



__________________

Best Regards, Christopher Williams www.CJWSoft.com
Back to Top View cwilliams's Profile Search for other info by cwilliams Visit cwilliams's Homepage
 
cwilliams
Admin Group
Admin Group
Avatar
CJWSoft Web Software Developer

Joined: April/06/2004
Online Status: Offline
Info: 1769
Added: June/19/2007 at 3:01pm | IP Logged Quote cwilliams

NOTE: This mod does not currently work when using the .NET Authentication Add-On though I plan to add support under that scenario for the next version of the Add-On.

__________________

Best Regards, Christopher Williams www.CJWSoft.com
Back to Top View cwilliams's Profile Search for other info by cwilliams Visit cwilliams's Homepage
 

If you wish to make a comment to this info you must first login
If you are not already registered you must first register

  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area


vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.powerasp.com,www.aspclassifieds.com,www.aspphotogallery.com,www.codewanker.com