Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: Block IP Range Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ashley7070
Newbie
Newbie


Joined: 03 July 2008
Online Status: Offline
Posts: 14
Posted: 07 July 2008 at 12:34am | IP Logged Quote ashley7070

Hi I want to block some countries from accessing my website.

I used http://www.blockacountry.com/ to generate a list of IPs I need to block, the user from the blocked IPs should get a 403 forbidden.

Now need to figure out how to make it ISAPI_rewrite compatible.

Here is what I got:

<Limit GET HEAD POST>
order allow,deny
deny from 41.207.128.0/19
deny from 41.211.64.0/19
allow from all
</LIMIT>

If someone can help me with that, I would really appreciate it.
Back to Top View ashley7070's Profile Search for other posts by ashley7070
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7389
Posted: 08 July 2008 at 1:25pm | IP Logged Quote Lexey

RewriteCond %REMOTE_ADDR 41\.(?:207\.1(?:2[89]|[3-5]\d)|211\.(?:6[4-9]|[78]\d|9[0-5]))\..*
RewriteRule (.*) $1 [F]
Back to Top View Lexey's Profile Search for other posts by Lexey
 
ashley7070
Newbie
Newbie


Joined: 03 July 2008
Online Status: Offline
Posts: 14
Posted: 11 July 2008 at 1:01am | IP Logged Quote ashley7070

Thank you
Back to Top View ashley7070's Profile Search for other posts by ashley7070
 

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