Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 19th, 2004, 01:20 AM
rajr rajr is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 12 rajr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old November 19th, 2004, 05:54 AM
maxintosh's Avatar
maxintosh maxintosh is offline
Procrastinator Extraordinaire
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 125 maxintosh User rank is Private First Class (20 - 50 Reputation Level)maxintosh User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 5 h 29 m 34 sec
Reputation Power: 4
Send a message via AIM to maxintosh
You mean find out where they live and only grant access if they live in a certain area? You can't do that.

Reply With Quote
  #3  
Old November 19th, 2004, 01:19 PM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 1 Week 6 Days 23 h 39 m 19 sec
Reputation Power: 92
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.
__________________
- Edwin -

The General Rules Thread | The General FAQ Thread

Reply With Quote
  #4  
Old November 19th, 2004, 04:52 PM
Syngin Syngin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Windsor Ontario
Posts: 155 Syngin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 h 6 m 36 sec
Reputation Power: 8
Send a message via MSN to Syngin
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?

Reply With Quote
  #5  
Old November 21st, 2004, 08:00 PM
rajr rajr is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 12 rajr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by Syngin
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)



I am using Windows 2000 server and ASP. Is this possible to do this. can you pls explain to me.

Reply With Quote
  #6  
Old November 21st, 2004, 08:12 PM
Syngin Syngin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Windsor Ontario
Posts: 155 Syngin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 h 6 m 36 sec
Reputation Power: 8
Send a message via MSN to Syngin
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Restrict to access the website


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT