how to restrict wampserver access to certain ip addresses

Posted by user28233 on Server Fault See other posts from Server Fault or by user28233
Published on 2010-07-04T08:41:54Z Indexed on 2012/03/22 17:33 UTC
Read the original article Hit count: 261

Filed under:

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> 

© Server Fault or respective owner

Related posts about wampserver