Results 1 to 5 of 5
  1. #1
    How to block specific IP address(es) access to my webserver?

    Member Since
    Mar 03, 2013
    Posts
    16
    How to block specific IP address(es) access to my webserver?
    Hi;

    I run a small personal website on a Mac Mini at home. Using 2010 Mac Mini Server w/ OS X 10.9.2 and latest OS X Server, Apache Web Server 2.2x.

    Would like to be able to block some specific IP addresses that are using a lot of bandwidth (spiders, hackers, etc.) from accessing the site and possibly the IP address on the public side.

    Is there a way to redirect specific addresses into some sort of a black hole, with no error message - just ... nothing?

    Thanks!

  2. #2
    How to block specific IP address(es) access to my webserver?
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,398
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Looks like you want Apache's access control functionality (see here).
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  3. #3
    How to block specific IP address(es) access to my webserver?

    Member Since
    Mar 03, 2013
    Posts
    16
    Thanks, but that's not very helpful. Not even sure where those settings would go.

    Is there a way to block at the firewall? I'm using Airport Extreme (5th Gen)

    Thanks.

  4. #4
    How to block specific IP address(es) access to my webserver?
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,398
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Those settings go in your httpd.conf file (so, /etc/apache2/httpd.conf...I think, I'm away from my Mac right now).

    I'm not sure how the sever app works but evidently there's a hardware section in the server app that lets you tweak with the Airport device on the Mac itself. From what I've seen, there's a bit of control there for blocking things.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  5. #5
    How to block specific IP address(es) access to my webserver?

    Member Since
    Mar 03, 2013
    Posts
    16
    That was simpler than I thought. I was able to add a directive (if that's the right term) like "DENY xxx.yyy.zzz.aaa" for the address. directly to the httpd.conf file in etc/apache2. For some reason, all the other references I had seen were saying to refer to files inside other files and defined elsewhere, yadda yadda. Hopefully this will work. Seems a lot more direct that other methods at least.

    Thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can I block internet to a specific computer through AEBS?
    By markwco in forum Other Hardware and Peripherals
    Replies: 0
    Last Post: 03-07-2012, 06:41 PM
  2. Block specific caller in iPhone
    By rebbrann in forum Switcher Hangout
    Replies: 1
    Last Post: 11-19-2011, 11:26 AM
  3. Can I block specific pages in safari?
    By bob loblaw in forum OS X - Apps and Games
    Replies: 3
    Last Post: 08-12-2009, 06:24 PM
  4. Is it possible to block a specific URL ?
    By kimberly24 in forum Switcher Hangout
    Replies: 11
    Last Post: 07-10-2009, 05:35 AM
  5. Can I block specific websites on Airport Extreme Base Station?
    By markwco in forum Internet, Networking, and Wireless
    Replies: 2
    Last Post: 03-08-2009, 09:37 AM

Posting Permissions

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