Apache server - prevent outside access

Reply

Join Date: Nov 2008
Posts: 54
Reputation: whitestream6 is an unknown quantity at this point 
Solved Threads: 0
whitestream6 whitestream6 is offline Offline
Junior Poster in Training

Apache server - prevent outside access

 
0
  #1
Apr 8th, 2009
I've been testing a few PHP scripts on an Apache server with Apache 2.2, the latest version, and a PHPMyadmin.

Currently I'm running MediaWiki and a PHPbb board, with testing content.

I want to prevent access from the outside world, how would I do this??

Currently typing my IP address doesn't actually show any content of the server, nothing actually shows up, or "this document contains no data!" when viewing it in Firefox, so I assume I am relatively safe.

Please can someone help me with this, thanks!
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 563
Reputation: OlyComputers will become famous soon enough OlyComputers will become famous soon enough 
Solved Threads: 34
OlyComputers OlyComputers is offline Offline
Posting Pro

Re: Apache server - prevent outside access

 
0
  #2
Apr 11th, 2009
I'm going to assume this is a strictly test system, with no running webpages running...

Just make sure the necisary ports aren't forwarded to your system and/or set your firewall to block them. If there's no domain pointed at your site the odds of it being scene are pretty low too, as somebody would have to be looking at your public IP to find it.
-This post is provided without warranty, emotion, or a conscience. Hope it helps-
*I'm an egomaniac: I love reputation points*
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 54
Reputation: whitestream6 is an unknown quantity at this point 
Solved Threads: 0
whitestream6 whitestream6 is offline Offline
Junior Poster in Training

Re: Apache server - prevent outside access

 
0
  #3
Apr 14th, 2009
Originally Posted by OlyComputers View Post
I'm going to assume this is a strictly test system, with no running webpages running...

Just make sure the necisary ports aren't forwarded to your system and/or set your firewall to block them. If there's no domain pointed at your site the odds of it being scene are pretty low too, as somebody would have to be looking at your public IP to find it.
It is a development-only system. Previously people did find it by my IP in the past when it was just blank-content of testing 123.

I'm using it as a testbed before I transfer stuff to another webserver.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 189
Reputation: martin5211 is an unknown quantity at this point 
Solved Threads: 14
martin5211 martin5211 is offline Offline
Junior Poster

Re: Apache server - prevent outside access

 
0
  #4
Apr 14th, 2009
Leave MySQL user scope restricted only to localhost and/or 127.0.0.1, always create and use a different mysql user per database/site to avoid using root (if your mysql account is compromised e.g. through the configuration file stored in your web server, the user will not be able to drop all databases).
Last edited by martin5211; Apr 14th, 2009 at 6:00 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC