navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

How to block an ip address??

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> How to block an ip address??
Page: [1]
 
pmagas

 

Posts: 367
Joined: 3/26/2002
From: St. Louis MO USA
Status: offline

 
How to block an ip address?? - 8/4/2003 16:46:53   
I understand there are ways to block individual ip addresses, but I wonder if there' s a way to do so using asp? I' m using spooky login and there' s a person who continues to register despite our requests that he not do so. I' d like to block his ip address. I can' t use the .htaccess file approach safely because my site is hosted on a Windows server. I saw that there' s a javascript but thought it might be ' cleaner' if there' s some asp code I can use.

Is it possible and is it difficult? I haven' t been able to find anything online and I don' t know asp very well.

Thanks for any help you might be able to offer.

Regards,

_____________________________

Penny
humble webmaster of
We Sell St. Louis
http://www.WeSellStLouis.com
http://www.MarkSellsStLouis.net
http://www.St-Louis-Mo.info
http://www.NealSellsStLouis.com
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: How to block an ip address?? - 8/4/2003 16:53:21   
Yes and no - the problem lays in the fact the user could be on an dynamic IP address (as most ISP' s do not provide static IP' s)

When the person registers - the IP address is recorded in the login.
Is this the same every time?
Are you using email authentication or unique email addresses? if so, the user could be restricted that way too.

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to pmagas)
pmagas

 

Posts: 367
Joined: 3/26/2002
From: St. Louis MO USA
Status: offline

 
RE: How to block an ip address?? - 8/4/2003 17:16:59   
Thanks, Spooky! I' ve not wanted to do this before for that very reason. This person does happen to have the same IP address every time. And no other users have it. I' ve run into those where two users have the same IP address - they both probably work at the same company. But I don' t have any others with his IP.

I' m not using email authentication because the ' boss' doesn' t want me to. :) We' ve gone back & forth on that one. But when a registrant' s email doesn' t work, I inactivate the account. I' ve set up two access levels and if a visitor wanted to get into both parts, they' d have to login twice - once with each access level, so I have unique email addresses turned off. This particular user has given me 3 or 4 email addresses - at least two of them worked. I' ve tried writing him and asking him not to continue to register, but he just ignores my emails. I really hope not to encounter this sort of thing again. Part of me wonders if it' s worth the effort, but every day he' s registering under a different user and wasting my time...

Is there something I can do with asp or should I use javascript or is there a better way? Thanks for your help!!

Regards,

_____________________________

Penny
humble webmaster of
We Sell St. Louis
http://www.WeSellStLouis.com
http://www.MarkSellsStLouis.net
http://www.St-Louis-Mo.info
http://www.NealSellsStLouis.com

(in reply to pmagas)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: How to block an ip address?? - 8/4/2003 17:22:59   
To specifically exclude that user try this script :


<%If request.servervariables(" REMOTE_ADDR" ) = " xxx.xxx.xxx.xxx" then
response.redirect " go_away.asp"
End if%>

(Where xxx is the user IP)

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to pmagas)
pmagas

 

Posts: 367
Joined: 3/26/2002
From: St. Louis MO USA
Status: offline

 
RE: How to block an ip address?? - 8/4/2003 17:56:14   
Thank you SO very much!! Should I then create a page go-away.asp with a message indicating their ip address is blocked?

Have a great one!

_____________________________

Penny
humble webmaster of
We Sell St. Louis
http://www.WeSellStLouis.com
http://www.MarkSellsStLouis.net
http://www.St-Louis-Mo.info
http://www.NealSellsStLouis.com

(in reply to pmagas)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> How to block an ip address??
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts