Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Is it possible to code an IP Ban?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

CalloftheHauntedMaster
Junior Member

289 Posts

Posted - 08 April 2005 :  20:01:33  Show Profile
I'm asking for SoD:

www.schoolofduel.com

It is possible to code an IP Ban into the forums? If so, can someone explain how?

This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums!

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 08 April 2005 :  20:37:15  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message
I'm sure its possible, but your easiest way out would be to install IPGate, available from www.snitzbitz.com .

eXtremeGossip
Go to Top of Page

aberbotimue
Starting Member

United Kingdom
41 Posts

Posted - 09 April 2005 :  08:14:43  Show Profile  Visit aberbotimue's Homepage  Send aberbotimue a Yahoo! Message
Try having a look at the Mods

this one should help

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=19953


Nathan
Duct tape is like the force, it has a dark side and a light side, and holds the universe together

Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 09 April 2005 :  13:49:56  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message
quote:
Originally posted by aberbotimue

Try having a look at the Mods

this one should help

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=19953
gpctexas' IPGate MOD at SnitzBitz is newer and is sure to work with 3.4 - I would recommend installing that one.

eXtremeGossip
Go to Top of Page

KC
Junior Member

USA
152 Posts

Posted - 10 April 2005 :  12:46:52  Show Profile  Visit KC's Homepage
Or just add a line like this to your global.asa file.

Specific IP:

-----
' Date and description of who the ban is for and why.
if Request.ServerVariables("remote_host")= "82.46.128.79" then
Response.Redirect "http://your.server/your Banned.htm"
end if
-----

Server block.
The red is how who many numbers of the IP starting from the left and works like * wildcard for the rest.

-----
' Date and description of who the ban is for and why.
if left(Request.ServerVariables("remote_host"),9)= "24.91.78." then
Response.Redirect "http://your.server/your Banned.htm"
end if
-----

You place as many as you want anywhere between the <SCRIPT LANGUAGE=VBScript RUNAT=Server> and </script> tags.

The redirect page is where you want to to send them.
Make sure it is NOT an .asp page!
global.asa is like an "Include first in all.asp pages" thing.
Redirecting to another .asp page would force a loop.

Note that will ban the person(s) from every single .asp page on your site.
A one step solution to keeping unwanteds out your whole domain.

Owner of vales.com and Elite Computers.

Edited by - KC on 10 April 2005 12:48:41
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 10 April 2005 :  22:48:06  Show Profile
Or as I do in the inc_header.asp:
<% if request.servervariables("REMOTE_ADDR") = "(the IP address)" or request.servervariables("REMOTE_ADDR") = "(Another IP address)" then
	Response.Redirect "http://www.fbi.gov"
end if %>
They normally get the point after that.

I hope that helps..

Cheers,

David Greening
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07