how to restrict wampserver access to certain ip addresses
- by user28233
What do I need to do in order to restrict the access to my wamp server to certain ip addresses.
Just imagine that the my ip address is the ip address that I only want to have access
I tried to edit the .htaccess
# This folder does not require access over HTTP
# (the following directive denies access by default)
Order allow,deny
Allow from 112.203.229.44
and the phpmyadmin.conf:
Alias /phpmyadmin "E:/wamp/apps/phpmyadmin3.2.0.1/"
# to give access to phpmyadmin from outside
# replace the lines
#
# Order Deny,Allow
# Deny from all
# Allow from my ip address
#
# by
#
# Order Allow,Deny
# Allow from my ip address
#
<Directory "E:/wamp/apps/phpmyadmin3.2.0.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from my ip address
</Directory>