Skip to content

Instantly share code, notes, and snippets.

@wtnabe
Created July 30, 2010 08:01
Show Gist options
  • Save wtnabe/500122 to your computer and use it in GitHub Desktop.
Save wtnabe/500122 to your computer and use it in GitHub Desktop.
httpd.conf for blocking access by IP addr ( not HostName )
deny access by IP addr
<VirtualHost 192.168.0.1:80>
ServerName 192.168.0.1
<Location />
Deny from all
</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment