Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 05-31-2006, 01:21 AM   #1
Member (1 bit)
 
Join Date: May 2006
Posts: 1
Exclamation checking ip range

I want to detect client ip addresss and check whether the ip is within th ip range.

Eg.

ip address=192.168.30.77
range 30.10 to 30

how to check the ip address is within the range in asp?

Thanks..
jutiyi is offline   Reply With Quote
Old 05-31-2006, 05:39 AM   #2
Member (7 bit)
 
moistmule's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 114
i think its something along the lines of:
Code:
Request.ServerVariables("REMOTE_HOST")
depending on the server you're running, you could get the server to do it for you. in Apache a .htaccess file enables you to deny/allow specific ip ranges (or your httpd.conf file). I should imagine theres a similar thing in Microsofts IIS.
moistmule is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:09 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2