Assuming YOU wish to able to still use the network -
The easiest two step fix might be to edit the \xampp\apache\conf\extra\httpd-xampp.conf
search for:
- Code: Select all
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
change this:
- Code: Select all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16
To this
- Code: Select all
Allow from ::1 127.0.0.1
Save the file
And then run the XAMPP Security Wizard (found through the XAMPP Welcome Page). Use the .htaccess it creates and places in \xampp\htdocs\xampp, and copy it to any folders you wish to protect. Only the user & password created in that process will have access. Be sure to use the save text file option for PW.
Restart XAMPP and test.
This basically restricts access to XAMPP suite parts to the local machine (first part), and then provides the .htaccess code that will prevent browsing parts of the DocumentRoot -- anywhere you place that .htaccess file will now require a password (second part).
This may not be the simplest, but I think it will do the job, and is easily reversed.
Good Luck