Results 1 to 11 of 11
  1. #1
    4 Star Lounger
    Join Date
    Jul 2006
    Posts
    531
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Banning Ip address from website

    I am looking for some simple to use FREE ware software which will allow IP addesses to be banned from my website.
    I tried google but they all involve coding which is a bit to involved for what l require or you have to pay after a certain while.

    Any help would be really appreciated.

  2. #2
    2 Star Lounger
    Join Date
    Aug 2004
    Location
    Withyham, Sussex, England
    Posts
    121
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Banning Ip address from website

    If it is a linux server you can use the .htaccess route to ban IPs use something like
    order allow,deny
    deny from 123.45.6.7
    deny from 012.34.5.
    allow from all
    change the IP addresses to suite.

  3. #3
    4 Star Lounger
    Join Date
    Jul 2006
    Posts
    531
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Banning Ip address from website

    Hello,

    I am on a unix server and l have not got a clue what you mean by .htaccess route?
    Please can you explain in a more simplied form what you mean. I am using aceftp if that is of any help.
    Do l put this in a script ? If so where where does it go and how do l run it?

  4. #4
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Banning Ip address from website

    <IMG SRC=http://www.wopr.com/w3tfiles/48-520387-google.gif>

    Comprehensive guide to .htaccess- intro

  5. #5
    2 Star Lounger
    Join Date
    Aug 2004
    Location
    Withyham, Sussex, England
    Posts
    121
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Banning Ip address from website

    If you are on a unix box then you will already have a .htaccess file in the root of your website, download it and add the code I supplied above but change the ip addresses to the ones that you wish to ban and then reupload it. If you are using windows as your local pc you will not be able to save it with the . infront of the htaccess, so save it as htaccess.txt upload it and rename in the server with your ftp program.

  6. #6
    4 Star Lounger
    Join Date
    Jul 2006
    Posts
    531
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Banning Ip address from website

    I don't see any option rename it to .htaccess , also what writes does the files i.e r w x and do l ftp accross as ascii or binary?
    Any help would be apperciated.

    This is the file l am using:

    order allow,deny
    deny from 84.19.182.59
    deny from 195.235.13.132
    deny from 203.144.144.164
    deny from 202.101.6.85
    deny from 212.56.201.19
    deny from 64.246.18.25
    deny from 69.31.86.58
    allow from all
    Attached Images Attached Images

  7. #7
    2 Star Lounger
    Join Date
    Aug 2004
    Location
    Withyham, Sussex, England
    Posts
    121
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Banning Ip address from website

    After you have uploaded it to your server you can right click from within aceftp and choose rename,after you have renamed it right click again and choose properties or permissions and set it to 444 this is readonly. Upload it as ascii, you should have in aceftp an option for ace to determine what mode to upload in automatically.

  8. #8
    4 Star Lounger
    Join Date
    Jul 2006
    Posts
    531
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Banning Ip address from website

    I have set it to read only for owenr group and everyone. Is that 444?
    How can l tell if file works , l assum l wil no longer get postings from that person?
    I uploaded in ascii as you told.

  9. #9
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Banning Ip address from website

    Justin

    The easiest way to test this by yourself is to create a test folder and place a .htaccess file in there that denies your local IP address. Try navigating to that page in the browser and if it doesn't show, you know it works. You can put individual .htaccess files in all folders dependent on who you want and don't want to see it.

    Alternatively interrogate the log files and see if that IP address has visited your pages
    Jerry

  10. #10
    2 Star Lounger
    Join Date
    Aug 2004
    Location
    Withyham, Sussex, England
    Posts
    121
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Banning Ip address from website

    Yes read only for owner, group, and everybody is 444, follow Jeezas advice to see if it works. Be aware that many people do not have fixed IPs so banning IP addresses has a very limited effect.

  11. #11
    5 Star Lounger
    Join Date
    Apr 2003
    Location
    Hampshire, United Kingdom
    Posts
    602
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Banning Ip address from website

    When you say "get postings" are you talking about some kind of messageboard / forum? What we're talking about in this thread is stopping the IP from viewing your site completely. Most messageboard software has some script-based blocking mechanism that will effectively make your site "read-only" to that user, thus not blocking them from the site completely. It may be easier to manage your site access that way rather than through .htaccess (especially if the user in question has a dynamic IP address; are you sure it's static?)
    Waggers
    If at first you do succeed, you&#39;ve probably missed something.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •