Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > eCommerce > Hosting Issues
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Hosting Issues This forum deals with various web hosting issues that Webmasters deal with. Everyone is encouraged to share thier ideas and concerns.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-06-2007, 09:59 AM
AuctionHugh's Avatar
WebProWorld Member
 

Join Date: Jul 2004
Location: Kalamazoo Michigan
Posts: 79
AuctionHugh RepRank 0
Talking Prevent certain countries from accessing our website

Every day my hit tracker shows hits to our web design company site from India because we have a high google ranking.

Then later in the day, I get phone calls bugging me to use their outsourcing services, which I have no desire to do.

Is it possible to set up our site, perhaps with an .htaccess file, so that no one from the country of india can access it?

Nothing personal against india, but I'm tired of being hassled by these phone calls.

Thanks.

(Mods, if this thread is in the wrong place, I'd appreciate it if you would move it to a more appropriate forum section. Thanks).
__________________
Let Kathleen rescue you when your website workload gets overwhelming. Talented, Fast, and hits deadlines! 1-888-572-7627 or Kallen Web Design, Small Business Website Development

Last edited by AuctionHugh : 06-06-2007 at 10:06 AM.
Reply With Quote
  #2 (permalink)  
Old 06-08-2007, 01:18 AM
WebProWorld Pro
 

Join Date: May 2007
Location: DataCenter
Posts: 174
hostBrain RepRank 1
Default Re: Prevent certain countries from accessing our website

Sure, with the trusty htaccess file, put the following code
Quote:
order allow,deny
deny from xxx.xx.xxx.x
allow from all
Or if you want to block a block...
Quote:
order allow,deny
deny from xxx.xx.xxx.
allow from all
This would block
xxx.xx.xxx.1
xxx.xx.xxx.2
xxx.xx.xxx.3
and on and on...
__________________
----Don't Call Me Brian----
Reply With Quote
  #3 (permalink)  
Old 06-27-2007, 08:54 AM
WebProWorld New Member
 

Join Date: Jun 2007
Posts: 4
Eskhosting RepRank 0
Default Re: Prevent certain countries from accessing our website

also with cPanel there is IP deny manager that will help you to block specific IPs, but in .htaccess it is also possible
__________________
http://www.eskhosting.com - reliable web hosting with PHP, MySQL, cPanel. Domain name registration with Whois privacy. No overselling. Real prices for real services.
Reply With Quote
  #4 (permalink)  
Old 07-05-2007, 10:30 AM
AuctionHugh's Avatar
WebProWorld Member
 

Join Date: Jul 2004
Location: Kalamazoo Michigan
Posts: 79
AuctionHugh RepRank 0
Default Re: Prevent certain countries from accessing our website

Excellent.

I can see from my statcounter logs that hits from india so far have come from 59.* 102.* and 203.*

Is there a place I can lookup to find out if I block those, if I will also be blocking north america IPs (since I'm using such a broad wildcard)?

Thanks!
__________________
Let Kathleen rescue you when your website workload gets overwhelming. Talented, Fast, and hits deadlines! 1-888-572-7627 or Kallen Web Design, Small Business Website Development
Reply With Quote
  #5 (permalink)  
Old 07-05-2007, 09:54 PM
AuctionHugh's Avatar
WebProWorld Member
 

Join Date: Jul 2004
Location: Kalamazoo Michigan
Posts: 79
AuctionHugh RepRank 0
Default Re: Prevent certain countries from accessing our website

Here is what I came up with with a little help from my friends at webhostingtalk.com:

Blocking IP addresses in .htaccess for whole countries - WebHostingTalk Forums
__________________
Let Kathleen rescue you when your website workload gets overwhelming. Talented, Fast, and hits deadlines! 1-888-572-7627 or Kallen Web Design, Small Business Website Development
Reply With Quote
Reply

  WebProWorld > eCommerce > Hosting Issues
Tags: , , , , ,



Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Website access from different countries rkstevens Accessibility and Usability Forum 2 05-22-2007 08:48 AM
accessing net yanina MSN Search Discussion Forum 5 04-21-2007 08:50 PM
Spiders get 406 err accessing RSS/XML alienzhavelanded Search Engine Optimization Forum 2 11-29-2004 02:54 PM
Is there a way to prevent a bot from following a link? netman4ttm Search Engine Optimization Forum 2 08-12-2004 02:15 AM
Need a way to prevent fraud hendis eCommerce Discussion Forum 8 04-20-2004 09:54 AM


Search Engine Optimization by vBSEO 3.2.0