Defindit Docs and Howto Home
keywords:apple,osx,os,htaccess
description:Why allow/deny directives may not work with Apache and OSX.
title:Apache allow/deny and OSX

# Normal Apache Allow directives don't work. Due to the port swap
# REMOTE_ADDR always has the ip address of the server instead of the
# ip address of the user.
#
# The following code does not work.
#
#Order Deny,Allow
#Deny from all
# HTTP_PC_REMOTE_ADDR can't be used, apparently because it is not a server-wide variable.
# SetEnvIf HTTP_PC_REMOTE_ADDR ^128.143.* local_user
#Allow from env=local_user