How do I remove access from a certain page?

How do I remove access from a certain page?

Vidja Games — Page [1]
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 2045
I don't want anyone having access to phpmyadmin on my site. How can I make it so that when people go there it displays a message of my choice?
 
 
 
2010 Dec 9 at 09:22 PST
buq25

2008 Jul 5 • 583
295 ₧
First, Computer and video games.

second:
Today's post brought to you by the letter: "heck".
 
 
 
2010 Dec 9 at 11:19 PST — Ed. 2010 Dec 9 at 11:21 PST
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 2045
First, I already googled it and couldn't find anything.
Second, this is about computers.
 
 
 
2010 Dec 9 at 11:37 PST
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
If yo disallow access to other people you will also disallow access to for yourself. My I suggest my php login script?
 
 
 
2010 Dec 9 at 12:01 PST — Ed. 2010 Dec 9 at 12:02 PST
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 2045
It already has a login. I need to dissallow it to everyone except specific IPs that I assign.
 
 
 
2010 Dec 9 at 12:07 PST
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
This only requires the .htaccess file. There are two approaches to restricting by IP address:

a) deny everyone access, then allow certain hosts/IP addresses

AuthName "Lee's Secret Area"
AuthType Basic
<Limit GET POST>
order deny,allow
deny from all
allow from 199.166.210.
allow from .golden.net
allow from proxy.aol.com
allow from fish.wiretap.net
</Limit>

b) allow everyone except for certain hosts/IP addresses

AuthName "Lee's Secret Area"
AuthType Basic
<Limit GET POST>
order allow,deny
allow from all
deny from .microsoft.com
deny from .evil-hackers.org
deny from 24.112.106.235
deny from morphine.wiretap.net
</Limit>
 
 
 
2010 Dec 9 at 12:08 PST
phoenix_r

2009 May 13 • 905
17 ₧
Rockbomb said:
...this is about computers.

Judging by the garage' description, it's about games, be they computer games or console. While there is no general computer discussion, this could fit in 'programming help,' 'requests,' or 'general.' Perhaps you should make a truck in 'requests' requesting a computer garage. Perhaps I should.
BOO
 
 
 
2010 Dec 9 at 14:53 PST
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 2045
So anyways, I found the .htaccess file in my root directory (Ctrl+H), but I really don't know how to go about blocking phpmyadmin, because on my site it shows up as being in the root directory "www.site.com/phpmyadmin", but in reality its in /etc/phpmyadmin. Any ideas?
 
 
 
2010 Dec 9 at 15:19 PST
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
I don't know enough about Apache but you should probably check their manual. There might be a symlink from /etc/ to /usr/var/apache/ (is that even right?).
 
 
 
2010 Dec 9 at 15:29 PST
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
why is it in etc/? apt-get install phpmyadmin?
 
 
 
2010 Dec 9 at 15:42 PST
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 2045
sprinkles said:
apt-get install phpmyadmin?

Thats how I installed it, and it installed in my etc directory
 
 
 
2010 Dec 9 at 15:46 PST
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
I would suggest uninstalling it. Jus' download it and copy pasta that shit. Then use the .htaccess file.
 
 
 
2010 Dec 9 at 15:50 PST
Page [1]