Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have a small website running Ruby on Rails over Apache2, and I have been asked to check if a specific IP has been blacklisted from accessing it.

I am almost entirely unfamiliar with Apache and I'm not sure if I've looked the proper locations.

I've checked:

  • /etc/hosts.allow and .deny
  • the .htaccess file in the root rails directory
  • routes.rb in the rails config
  • /etc/apache2/apache2.conf, httpd.conf (which is a blank file), and the site in sites-enabled.

I also grepped through /etc/ for anything resembling an IP address and found no hits (plenty of results, but all obviously other things).

Are there any other likely spots a sysadmin might put things?

share|improve this question
It'll be wherever it was configured to be. The site documentation should define where blacklisted IPs are put in your setup. –  womble Jul 21 '11 at 21:15
Do you have a firewall in front of the Apache server? In my environment, if you went looking for a blacklisted IP on the Apache servers, you'd never find it! We have a (pair of) front-facing firewalls that all traffic goes through, and hence IPs are blocked there. Do you have something similar? –  Kendall Jul 21 '11 at 21:31
Or even a firewall/packet filter running on the OS? –  Safado Jul 21 '11 at 21:34
How does the connection fail? Reset packet (or timeout, depending on config) means firewall, HTTP 403 means apache config or web application - good to narrow it down! –  Shane Madden Jul 21 '11 at 22:01
@womble : I wish there was documentation. Unless you mean something that apache forces people to fill in? –  eulerz Jul 22 '11 at 18:34
show 3 more comments

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.