Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - IP banning?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

IP banning?

 Post Reply Post Reply Page  12>
Author
Aumuz View Drop Down
Groupie
Groupie
Avatar

Joined: 14 March 2003
Location: United States
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aumuz Quote  Post ReplyReply Direct Link To This Post Topic: IP banning?
    Posted: 12 August 2003 at 1:13pm

I have just made a IP baner for my site, and I was wondering if this was a good methode of doing it...

SQL_config_ipban="SELECT table_config_ipban.* FROM table_config_ipban WHERE db_ipban_number='" & set_user_IP & "';"

site_record.Open SQL_config_ipban, site_data_base
 if not site_record.EOF then
  if site_record("db_ipban_ID") > 0 then
   response.redirect "error.asp"
  end if
 end if 
site_record.close

This works well, but I want to know if this could cause any problems, or if there is a better way of doing it.

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 12 August 2003 at 11:20pm
I would suggest separating the IP Address into its numeric component as it would make the look up faster or even better making it a single numeric string replacing the missing digits with 0 so 4.3.2.1 would become 4003002001.
Back to Top
Aumuz View Drop Down
Groupie
Groupie
Avatar

Joined: 14 March 2003
Location: United States
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aumuz Quote  Post ReplyReply Direct Link To This Post Posted: 13 August 2003 at 6:53am
Ok, thanks.
Back to Top
Aumuz View Drop Down
Groupie
Groupie
Avatar

Joined: 14 March 2003
Location: United States
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aumuz Quote  Post ReplyReply Direct Link To This Post Posted: 13 August 2003 at 6:56am

Question:

What should I do to people I ban from my site? Send them to a "error.asp" and tell them why they were banned? Send them to a "error.asp" and say the site is experiancing problems? Send them to a blank page? Send them to MSN,Google or Yahoo?

What would be best to do?

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 13 August 2003 at 9:17am
I send banned people to an error page.
Back to Top
Aumuz View Drop Down
Groupie
Groupie
Avatar

Joined: 14 March 2003
Location: United States
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aumuz Quote  Post ReplyReply Direct Link To This Post Posted: 13 August 2003 at 9:30am

In general what does it say?

"You have been banned."

"Error on page."

I mean, should I let people know that they have been banned, or should I try to make them think there is a error?

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 13 August 2003 at 9:55am
A general error is always better as you had a reason to ban someone and giving them a general error will make them think there is a problem with the site rather than them. If they believe there is a problem with the site they are less likely to return and/or continue to return. However, even DSL and Cable users occasionally get IP address changes, so you want to keep it general enough so that another visitor will be inclined to email you about not being able to access the site if they happen to have a banned IP.
Back to Top
Aumuz View Drop Down
Groupie
Groupie
Avatar

Joined: 14 March 2003
Location: United States
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aumuz Quote  Post ReplyReply Direct Link To This Post Posted: 13 August 2003 at 10:00am
Ok thanks.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.