|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Restrict to access the website
Hi,
I want to set the restriction to access my website for particular country internet viewers. ple help me how to do this. |
|
#2
|
||||
|
||||
|
You mean find out where they live and only grant access if they live in a certain area? You can't do that.
|
|
#3
|
||||
|
||||
|
You can look at their IP address, use a database to convert this to a country and then block by specific countries. But you'd need to add server scripting (such as PHP) to every one of your pages you want to restrict.
|
|
#4
|
|||
|
|||
|
Are you using Apache as your web server? You can use .htaccess to lock out directories in numerous ways. It'll allow restriction by domain so, if say you only allowed users from *.ru, only Russian dns addresses would be allowed (assuming that they had a dns ending in .ru)
__________________
Where are we going and why am I in this handbasket? |
|
#5
|
|||
|
|||
|
Quote:
I am using Windows 2000 server and ASP. Is this possible to do this. can you pls explain to me. |
|
#6
|
|||
|
|||
|
Not sure how you'd do this in IIS but here's the htaccess help file for Apache:
http://httpd.apache.org/docs/howto/htaccess.html |
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > Restrict to access the website |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|