13,420
edits
Changes
→Controlling Access to Pages
# Create a new directory inside your '''DocumentRoot''' and move index.php inside it.
# Have your partner view both files again.<br><br>You will now modify the settings on the web-server to prevent machines outside our network from accessing the private directory.<br><br>
# Add the following directory statement to your apache configuration (making sure to replace the X with your own network octet):<pre>
<Directory "/var/www/html/private">
AllowOverride None