Guest FirefoxRocks Posted December 21, 2007 Share Posted December 21, 2007 Ok I want to use my own computer to test PHP stuff on instead of uploading stuff to my hosting server (which is currently inaccessible because of a routing error). I would like to install Apache and PHP on Windows XP to do this. It seems fine to install XAMPP but I do not want other people to access the server.How do I ensure that the server is running but not live? I do have an Internet connection here so disconnecting is not an option. Basically I just need to close off port 80 from the outside world so that people can't use http to connect to my computer. How do I do that? Just block Apache from connecting in the firewall? Link to comment Share on other sites More sharing options...
elementis0 Posted December 22, 2007 Share Posted December 22, 2007 What you need is WAMP. which is a webserver you can use offline.http://www.wampserver.com/en/EDIT: nevermind, I did not read your post thoroughly enough. since people can http connect to this... Link to comment Share on other sites More sharing options...
hgmme@wa Posted December 22, 2007 Share Posted December 22, 2007 If I remember right, when you install apache on windows xp it by default uses "http://localhost/" for an address to access what's on your machine. meaning that other people can't access it from the world wide web, ,but it might be available on your local network, though not at the address http://localhost/. I can't test that for because I'm now on a mac... Link to comment Share on other sites More sharing options...
Guest FirefoxRocks Posted December 22, 2007 Share Posted December 22, 2007 No because for example:You have Apache running and your computer is connected to the Internet. It is so easy to access your public_html directory by just typing in this:http://64.233.187.104:80/Or even simpler:http://64.233.187.104/Because your IP is open to the default http port I think. Link to comment Share on other sites More sharing options...
Synook Posted December 26, 2007 Share Posted December 26, 2007 Basically I just need to close off port 80 from the outside world so that people can't use http to connect to my computer. How do I do that?Use your Firewall. If you don't have one then get one (quick), or else you are exposed to hackers. By the way, many Internet Service Providers block port 80 for residential customers because they don't want their bandwidth clogged up by people running home servers (unless they pay for it of course).You have Apache running and your computer is connected to the Internet. It is so easy to access your public_html directory by just typing in this:Yes, but if your computer is not connected to the internet you can still access it at http://localhost/ or http://127.0.0.1/Because your IP is open to the default http port I think.Your IP address is the same for all ports Link to comment Share on other sites More sharing options...
Guest FirefoxRocks Posted May 3, 2008 Share Posted May 3, 2008 Use your Firewall. If you don't have one then get one (quick), or else you are exposed to hackers. By the way, many Internet Service Providers block port 80 for residential customers because they don't want their bandwidth clogged up by people running home servers (unless they pay for it of course).I'm using ZoneAlarm firewall (I've used a few different ones before, this one is free and works good). My ISP prohibits running a server even within allowable bandwidth limits so I need to block this. So how do I block this?Yes, but if your computer is not connected to the internet you can still access it at http://localhost/ or http://127.0.0.1/ But that means I must unplug my cable modem or disable the network connection in Windows XP every time.Your IP address is the same for all portsThat's not what I meant, I meant that people could access my IP address (computer) with port 80. Link to comment Share on other sites More sharing options...
jlhaslip Posted May 4, 2008 Share Posted May 4, 2008 Highly unlikely that your IP address would ever get attacked by Hackers on a residential service. For one tyhing, I'm pretty sure that as discussed earlier, your ISP will be blocking that Port, so anyn attack would need to come from twithin your firewall, right? Google Gibson research for a Port Scanning feature on their web site. Link to comment Share on other sites More sharing options...
aszxcv Posted May 4, 2008 Share Posted May 4, 2008 good thread so if you have firewall you should be somewhat ok from hackers when using this programbtw how is one able to be hack when using such program?sorry for newbie question i am just learning this php Link to comment Share on other sites More sharing options...
jlhaslip Posted May 4, 2008 Share Posted May 4, 2008 so if you have firewall you should be somewhat ok from hackers when using this program correct btw how is one able to be hack when using such program? if your firewall is set-up correctly, you won't be hacked. Link to comment Share on other sites More sharing options...
Guest FirefoxRocks Posted May 4, 2008 Share Posted May 4, 2008 Highly unlikely that your IP address would ever get attacked by Hackers on a residential service. For one tyhing, I'm pretty sure that as discussed earlier, your ISP will be blocking that Port, so anyn attack would need to come from twithin your firewall, right? Google Gibson research for a Port Scanning feature on their web site.My ISP does not block that port though, I already tried it. Link to comment Share on other sites More sharing options...
Synook Posted May 4, 2008 Share Posted May 4, 2008 Wait so what's the problem? Link to comment Share on other sites More sharing options...
jlhaslip Posted May 4, 2008 Share Posted May 4, 2008 And what are the settings for the Firewall? You should be able to block the Port 80 inside the Firewall? Yes/No?Use .htaccess to Deny all except 127.0.0.1 Link to comment Share on other sites More sharing options...
Guest FirefoxRocks Posted May 5, 2008 Share Posted May 5, 2008 And what are the settings for the Firewall? You should be able to block the Port 80 inside the Firewall? Yes/No?Use .htaccess to Deny all except 127.0.0.1How do I do that? Link to comment Share on other sites More sharing options...
Synook Posted May 5, 2008 Share Posted May 5, 2008 In your htacess file write order deny,allowdeny from allallow from 127.0.0.1 Link to comment Share on other sites More sharing options...
aszxcv Posted May 5, 2008 Share Posted May 5, 2008 how do you access .htaccess in firewall? Link to comment Share on other sites More sharing options...
Wander Posted May 5, 2008 Share Posted May 5, 2008 .htaccess isnt something of the firewall, its a file that configures some server thingsim not sure if .htaccess is something for all servers, or if its just for apache, but u can read here what it does: http://httpd.apache.org/docs/2.2/howto/htaccess.htmljust create a file ".htaccess" and put whats 2 posts above is in the file, save it in the root directory of your server Link to comment Share on other sites More sharing options...
aszxcv Posted May 5, 2008 Share Posted May 5, 2008 ok thanks for clearing that up Link to comment Share on other sites More sharing options...
justsomeguy Posted May 12, 2008 Share Posted May 12, 2008 If you haven't done it yet, as was already suggested go to grc.com and run a shields up test.https://www.grc.com/x/ne.dll?bh0bkyd2 Link to comment Share on other sites More sharing options...
aszxcv Posted May 12, 2008 Share Posted May 12, 2008 thanks for linki pass all test Link to comment Share on other sites More sharing options...
aszxcv Posted May 19, 2008 Share Posted May 19, 2008 what is root directory for xampp i am deciding to give it another go Link to comment Share on other sites More sharing options...
zppblood Posted May 19, 2008 Share Posted May 19, 2008 Your web folder will either be www, htdocs, or something that may have named yourself if it allowed you during installation. Link to comment Share on other sites More sharing options...
aszxcv Posted May 20, 2008 Share Posted May 20, 2008 thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.