Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Windows Operating System > Windows Talk
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 06-30-2008, 10:07 PM   #1 (permalink)
dartingaround
Junior Member
 
Join Date: Jun 2008
Posts: 3
Default Blocking IPs and Domain from our domain

Hello all you windows server guru's... We have a website were we sell items that can not be sold or viewed by some countries... So... We want to be able to block them... I have tried the .htaccess with no success...

Let say we want to block all traffic from domains ending in .cn

How can we accomplish this... Or, can we?

Looking forward to hearing from everyone!
dartingaround is offline   Reply With Quote
Sponsored Links
Old 08-24-2008, 11:22 AM   #2 (permalink)
vonvhon
Junior Member
 
Join Date: Aug 2008
Posts: 13
Default Re: Blocking IPs and Domain from our domain

You can try to block the IP address block of the country. Usually, each country has their own blocks of ip addresses to use. In your page, You can setup to detect and block a sudden IP blocks with php pages.
vonvhon is offline   Reply With Quote
Old 09-08-2008, 09:51 AM   #3 (permalink)
James_olive
Junior Member
 
Join Date: Aug 2008
Posts: 51
Default Re: Blocking IPs and Domain from our domain

hello,
i think vonvhon is right follow him and tell us what happen.
James_olive is offline   Reply With Quote
Old 09-10-2008, 06:53 PM   #4 (permalink)
vbplusme
Junior Member
 
Join Date: Sep 2008
Posts: 9
Default Re: Blocking IPs and Domain from our domain

Are you running Apache?

You can pretty easily use php and preg_match to set up a filter on your index page to block just about any TLD or IP address but if you are running Apache, .htaccess ought to work.

I use php to detect and block spammers on my site and it is 100% effective. FYI.

HTH,

vbplusme
vbplusme is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 02:57 PM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums