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

Can we Block An Ip range on our website?

Discussion in 'BlackHat Lounge' started by jp_smith86, May 27, 2014.

  1. jp_smith86

    jp_smith86 Senior Member

    Joined:
    Jul 6, 2012
    Messages:
    855
    Likes Received:
    339
    Location:
    DIL APNA PUNJABI
    Home Page:
    Hey Guys,


    I want to restrict or block some people to visit my website. They are using a same IP range to visit my website. Is there any option i can block them or can redirect them to somewhere else. I don't want those people to visit my website. They are stealing my content and trying to sell my services on their own website. Whatever i post for my visitors they just copy, Modify and then publish on their website.


    Thanks in advance

    Pal
     
  2. keinehabe

    keinehabe Supreme Member

    Joined:
    Nov 4, 2008
    Messages:
    1,207
    Likes Received:
    472
    Gender:
    Male
    Occupation:
    -= CEO =-
    Location:
    Heaven
    Home Page:
    install apf onto the server :) you can block whole class to come over :)

    ps. IF you have the site into a vps/dedi only .
    ps.2 apf stands for advanced personal firewall :) installation/setup and configuration informations are easy to find on web.
     
    • Thanks Thanks x 1
  3. ttrox

    ttrox Regular Member

    Joined:
    Jun 28, 2013
    Messages:
    217
    Likes Received:
    75
    Use .htaccess to deny access to certain IPS:
    for example:
    order allow,deny
    deny from 145.122.
    allow from all

    Where 145.122.*.* will be denied of access. Search more about .htaccess on google.
     
    • Thanks Thanks x 2
  4. jp_smith86

    jp_smith86 Senior Member

    Joined:
    Jul 6, 2012
    Messages:
    855
    Likes Received:
    339
    Location:
    DIL APNA PUNJABI
    Home Page:
    I have shared ip guess. My website is on hostgator.
     
  5. salmanseo982

    salmanseo982 Regular Member

    Joined:
    Jan 28, 2014
    Messages:
    465
    Likes Received:
    40
    go to ur hosting and find widget ip range block put ip there it will work fine but must hosting on Apache not in window base any thing more PM mi
     
  6. akacash

    akacash Jr. VIP Jr. VIP

    Joined:
    Jan 16, 2010
    Messages:
    805
    Likes Received:
    575
    Location:
    The Beach, USA
    If you're using cPanel, make sure you have the box checked that says "View hidden files". The .htaccess is the easiest way to do it, but it doesn't show the file by default most times.
     
  7. devtheworld

    devtheworld BANNED BANNED

    Joined:
    Mar 21, 2014
    Messages:
    123
    Likes Received:
    12
    Yes, you can able to block their ip range.

    Just block their ip range in .htaccess.
     
  8. dragonian

    dragonian Regular Member

    Joined:
    Dec 26, 2009
    Messages:
    242
    Likes Received:
    62
    the problem with ip-based blocking is they can easily change their ip using a proxy or vpn. so when those guys discover you are blocking them, they can easily change their ip cheaply.