1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

.....Block IPs

Discussion in 'Web Design' started by zpower, Sep 4, 2010.

  1. zpower

    zpower Newbie

    Joined:
    Jul 18, 2010
    Messages:
    20
    Likes Received:
    1
    Hello ,
    Sorry if this isn't the right place
    Can anyone please tell me how to block the range of a certain country from my site ?
    Thank you in advance
     
  2. Skills

    Skills Newbie

    Joined:
    Aug 17, 2010
    Messages:
    46
    Likes Received:
    4
    Location:
    Carolina
    It's normally done with software that is on the host or whatever your running (forum/blog/CMS)

    Can you give more information on what is on your website? Like Wordpress/PhP-Nuke/Joomla
     
    • Thanks Thanks x 1
  3. xfactornos

    xfactornos Regular Member

    Joined:
    Mar 17, 2009
    Messages:
    207
    Likes Received:
    38
    Occupation:
    Engineer , IM
    Location:
    ☆☆☆☆☆
    .blockacountry.com/
     
    • Thanks Thanks x 1
  4. zpower

    zpower Newbie

    Joined:
    Jul 18, 2010
    Messages:
    20
    Likes Received:
    1
    -skills : thank you , my site is a wordpress site
    -xfactornos : Thank you very much , I will try this , and I hope it works
     
  5. crazyflx

    crazyflx Elite Member

    Joined:
    Nov 9, 2009
    Messages:
    1,674
    Likes Received:
    4,825
    Location:
    http://CRAZYFLX.COM
    Home Page:
    First, go to the root folder of your website and check for an existing .htaccess file (it will be named .htaccess )

    If there is one, download it, open it with notepad and add this to it:

    Code:
    order allow,deny
    deny from 127.0.0
    allow from all 
    This will block any visitor with an address in the 127.0.0.0 to 127.0.0.255 range (just as an example. change it to suit your needs)

    After you add that, reupload the file to your root folder.

    If you don't have an existing .htaccess file, then simply open up notepad on your PC, paste that into it, save it as .htaccess and upload it to the root folder of your site.

    For more information on this, simply google (without quotes): htaccess block ip range
     
    • Thanks Thanks x 1
  6. zpower

    zpower Newbie

    Joined:
    Jul 18, 2010
    Messages:
    20
    Likes Received:
    1
    thank you crzyflx ,
    I noticed that this is what the site (xfactornos) told is doing .
    Again thank you all for this help .