-
Restricting Users
Hi,
I would like to know the way to restrict only the users from a particular
country to visit my page using java. For example, if I want to make my site
visible/accessible only to users from china, how to do this..
Any help would be appreciated..
thx..
kris
-
Re: Restricting Users
You can't tell what country your users are coming from.
kris <krish_rsk@hotmail.com> wrote in message
news:3a78d297$1@news.devx.com...
>
> Hi,
> I would like to know the way to restrict only the users from a
particular
> country to visit my page using java. For example, if I want to make my
site
> visible/accessible only to users from china, how to do this..
>
> Any help would be appreciated..
>
> thx..
>
> kris
-
Re: Restricting Users
Actually, you can determine what country someone is connecting to you from.
Every IP address on the net must be registered to a company (or individual).
The registration process requires that you register the address (including
the country) that the IP address are going to.
Doing a lookup on the ip address of the individual who is connecting to your
site is not impossible. Looking up the owner of the IP address will let
you know the "network" that that user is connecting to you from.
A number of software companies have had to use this method to dissallow downloading
128-bit encrypting software (before the government allowed the export of
128-bit software, of course).
Now... doing this is another story. 
Although it can be done, it would require some code to do it. I have not
had a need to write something like that, but if I ever do, I will share that
code with you! 
Good Luck!
Kevin
"Paul Clapham" <pclapham@core-mark.com> wrote:
>You can't tell what country your users are coming from.
>
>kris <krish_rsk@hotmail.com> wrote in message
>news:3a78d297$1@news.devx.com...
>>
>> Hi,
>> I would like to know the way to restrict only the users from a
>particular
>> country to visit my page using java. For example, if I want to make my
>site
>> visible/accessible only to users from china, how to do this..
>>
>> Any help would be appreciated..
>>
>> thx..
>>
>> kris
>
>
-
Re: Restricting Users
Following from Kevin maybe rather than do a dynamic lookup an option could
be to collate the IP information first, into a database.
If the users IP address is in your database then allow them in.
Your problem then is storing and regularly updating the data. You only
need to store the IP address and its numeric so could be compressed and
be used as the primary key to save space and for speedy access but the
database would still be huge.
Doing this you shift the issue from getting dynamic third party IP information
to a standard everyday database sizing and update problem (which maybe more
easier for you to solve depending on your circumstances).
*
Another, thought, you could narrow the users down by using timezone differences
to only allow users in that access from your selected timezone/timezones.
Not very secure though!
*
You could setup a registration process via email, so that you have a
little more time to check them out before you approve their access.
Regards
Dane.
"Kevin" <orbaker@home.com> wrote:
>
>Actually, you can determine what country someone is connecting to you from.
> Every IP address on the net must be registered to a company (or individual).
> The registration process requires that you register the address (including
>the country) that the IP address are going to.
>
>Doing a lookup on the ip address of the individual who is connecting to
your
>site is not impossible. Looking up the owner of the IP address will let
>you know the "network" that that user is connecting to you from.
>
>A number of software companies have had to use this method to dissallow
downloading
>128-bit encrypting software (before the government allowed the export of
>128-bit software, of course).
>
>Now... doing this is another story. 
>
>Although it can be done, it would require some code to do it. I have not
>had a need to write something like that, but if I ever do, I will share
that
>code with you! 
>
>Good Luck!
>Kevin
>
>
>"Paul Clapham" <pclapham@core-mark.com> wrote:
>>You can't tell what country your users are coming from.
>>
>>kris <krish_rsk@hotmail.com> wrote in message
>>news:3a78d297$1@news.devx.com...
>>>
>>> Hi,
>>> I would like to know the way to restrict only the users from a
>>particular
>>> country to visit my page using java. For example, if I want to make my
>>site
>>> visible/accessible only to users from china, how to do this..
>>>
>>> Any help would be appreciated..
>>>
>>> thx..
>>>
>>> kris
>>
>>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks