Author |
Topic |
OpenIntro
Junior Member
USA
126 Posts |
|
gpctexas
Junior Member
320 Posts |
|
OpenIntro
Junior Member
USA
126 Posts |
|
gpctexas
Junior Member
320 Posts |
Posted - 02 May 2003 : 20:05:05
|
here is the line from a new forum install in inc_header.asp line 228
rs.close set rs = nothing end if
%> <!--#INCLUDE FILE="inc_ipgate.asp" --> <%
Response.Write "<html>" & vbNewline & vbNewline & _ "<head>" & vbNewline & _ "<title>" & GetNewTitle(strScriptName) & "</title>" & vbNewline
'## START - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT Response.Write "<meta name=""copyright"" content=""This Forum code is Copyright (C) 2000-02 Michael Anderson, Pierre Gorissen, Huw Reddick and Richard Kinser, Non-Forum Related code is Copyright (C) " & strCopyright & """>" & vbNewline '## END - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
|
ipgate 2.4.4 RC3 http://www.gpctexas.net/ipgate_v244.zip |
|
|
OpenIntro
Junior Member
USA
126 Posts |
|
cyclingdude
New Member
68 Posts |
Posted - 03 May 2003 : 15:03:17
|
Well, I completely removed IP gate and reinstalled the latest updated version (with corrected DBS file - thank you for that) and it's working.
However, remember all those people who I inadvertantly banned? Well, they all have cookies on their machines so if I turn logging on, they all register in my logs and that doesn't help me.
Can someone show me how to adjust the inc_ipgate.asp file to log ONLY those IPs listed in my IP table. I don't want those with cookies on their machines to show up in the log anymore.
Thanks. |
|
|
gpctexas
Junior Member
320 Posts |
Posted - 03 May 2003 : 15:07:43
|
done. You can give them a message to clear their cookie cache, which should clear the cookie on their end.
I'll try and see if I can get the inc_ipgate.asp to check the db to check if a user is in it and delete the cookie on their end if their name is not in there but it would have to be compared to ranges which would keep the cookie if their ip is with a range.
the Readme file has been updated as well to reflect some changes and plus adds a tip to prevent administrator banning, however this also will log the administrator into the logs as well. |
ipgate 2.4.4 RC3 http://www.gpctexas.net/ipgate_v244.zip |
Edited by - gpctexas on 03 May 2003 15:28:25 |
|
|
cyclingdude
New Member
68 Posts |
Posted - 03 May 2003 : 15:25:15
|
Hey Gp,
Thanks for the quick response. Here is why I don't want to give users a "clear cookie" message: I don't want some members to know that's how they could be banned.
I think banning with the cookie is a good thing. However, what I'm asking about is a way to continue to ban by cookie, and by whether or not their IP(s) are explicitly listed in the table, but not to log everyone with a banned cookie (especially not now that I screwed so many people by depositing cookies on their machines!! hehe).
Actually.. here is a question..
If they've got these cookies on their machines, why aren't they still banned from my forum? I've got 'Cookies' set to on. And if I set logging on, they show up too.. even though they're not listed in the IP table. Why is that? |
Edited by - cyclingdude on 03 May 2003 15:26:03 |
|
|
gpctexas
Junior Member
320 Posts |
Posted - 03 May 2003 : 15:34:32
|
I'll look into it. I have wondered that myself and wondering if the cookie part was working or even being checked.
Locate
if (not rs1.eof and not rs1.bof) or (StrIPGateCok <> 0 and Request.Cookies("IPGate") <> "") then 'check for db ips & user cookies
around line 122 in inc_ipgate.asp
remove the strike through part. Should remove the cookie logging. |
ipgate 2.4.4 RC3 http://www.gpctexas.net/ipgate_v244.zip |
Edited by - gpctexas on 03 May 2003 18:26:56 |
|
|
OpenIntro
Junior Member
USA
126 Posts |
Posted - 06 May 2003 : 12:55:25
|
I was curious how I can ban larger IP ranges....I'm not sure if I am setiing it up correctly....
Say the IP address I want to ban is 204.66.15.241, but I want to ban the entire range from 204.66. and everything after. How do I set that up. I know if I was just setting the range to the 4th part I would 204.66.15.1-204.66.15.254, but I also want the range to include the 3rd part (i.e. the 15) in the range as well.
Am I making sense? lol |
Let's All Do Kamikaze Shots! http://www.kamikazeshots.com http://www.kamikazeshots.com/forum *DO YOUR CLICKS!* http://dailyclicks.kamikazeshots.com |
|
|
gpctexas
Junior Member
320 Posts |
Posted - 06 May 2003 : 15:58:58
|
204.66.15.241
204.66.0.0 - 204.66.255.255
may even have to be 204.66.000.000 - 204.66.255.255
and geez that is a large chunck of the internet too |
ipgate 2.4.4 RC3 http://www.gpctexas.net/ipgate_v244.zip |
Edited by - gpctexas on 06 May 2003 16:15:29 |
|
|
Chuck McB
Junior Member
WooYay
196 Posts |
Posted - 06 May 2003 : 17:07:17
|
Setting the range to be 204.66. should do the trick (persuming that range banning now works?)
any incomming user with the 204.66.x.x IP will get banned, leaving the period at the end of the IP will stop x.x.204.66 or x.204.66.x getting banned in error. |
|
|
gpctexas
Junior Member
320 Posts |
Posted - 06 May 2003 : 20:38:16
|
I changed the way the mod works a little. There are 2 places in the admin_ipgate.asp to add a start range and an ending range. There may be a better way than how I did the changes logic wise, but I am a bit rusty on vb and keep trying to write in delphi. I am slowly getting more comfortable in the vb. I have a few ideas for more checking that can be done within the mod itself (cookie wise and logic wise), but I got to flowchart them out. |
ipgate 2.4.4 RC3 http://www.gpctexas.net/ipgate_v244.zip |
|
|
Munkey
Starting Member
27 Posts |
Posted - 09 May 2003 : 04:42:01
|
Ok, I have the newer one where it's just "IP/Range/Host:". So there's no fix for this right now? |
|
|
gpctexas
Junior Member
320 Posts |
Posted - 09 May 2003 : 20:02:25
|
I have been working on a newer admin_ipgate.asp. I added a default ban length when you add an ip from the logs, This requires another database adjustment and another variable added to config.asp. I am still testing the changes and tweaking it a little but shoudl be ready soon. |
ipgate 2.4.4 RC3 http://www.gpctexas.net/ipgate_v244.zip |
|
|
Topic |
|