This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Redirect Country Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Steve2507
Newbie
Newbie


Joined: 15 May 2007
Online Status: Offline
Posts: 23
Posted: 28 July 2011 at 2:22am | IP Logged Quote Steve2507

We currently use the following rule to block IP addresses:

RewriteCond %REMOTE_ADDR 38\.101\.148\.120

RewriteRule .* /999.html [L]

The 999 file is 0 bytes and I use it to see that the blocking/redirecting is working and it works great.

However we have recently been having a number of attacks from one specific country and I would like to block the country. The country is Vietnam.

Could anyone give me any advice on how to do this?

 

Thanks

Steve

 

Back to Top View Steve2507's Profile Search for other posts by Steve2507
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 28 July 2011 at 3:58am | IP Logged Quote Anton

The best way to achieve this is to use either IIS tools for blocking IP ranges or the firewall settings.
Doing this with ISAPI_Rewrite is far more complicated.

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum