Jump to content

Offline PHP


Guest FirefoxRocks

Recommended Posts

Guest FirefoxRocks

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 post
Share on other sites

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 post
Share on other sites
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 post
Share on other sites
  • 4 months later...
Guest FirefoxRocks
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 ports
That's not what I meant, I meant that people could access my IP address (computer) with port 80.
Link to post
Share on other sites

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 post
Share on other sites
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 post
Share on other sites
Guest FirefoxRocks
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 post
Share on other sites

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 post
Share on other sites
Guest FirefoxRocks
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
How do I do that?
Link to post
Share on other sites

In your htacess file write

order deny,allowdeny from allallow from 127.0.0.1

Link to post
Share on other sites

.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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...