phpmyadmin deny wan access (solved)
I figured I would post before I go in the closet with a bat and kill the server.
So im running a server with Debian Lenny I have Apache2, mysql, and php running. I got phpmyadmin and all I want to do is stop it from allowing traffic from the wan. I want to only access it from the LAN.
I tried adding code to /etc/apache2/httpd.conf and /etc/apache2/apache2.conf
I also tried changing the name of the directory /var/lib/phpmyadmin to /var/lib/blah
Deny from all
Allow from 10.0
to see if that would stop access so only mydomain.com/blah would get phpmyadmin and mydomain.com/phpmyadmin wouldnt exist... (LOL that fubared my sh*t so I had to remove phpmyadmin and reinstall)
I've read a few articles online which say to ad .htaccess (I dont think thats very secure) but regardless all I want is complete access only from the lan, nowhere else... is there a way to do this?
thanks in advance for any help.