Question

securing apache web server version 2.0.47

Asked by: confident_1967

i am new to this ...running a small business from home ... and i hear web server security is bad with apacje ....

how do i secure my server so people cant get in and hurt my systems ?

how do i make is so none of my files being requested are downloadable unless the requests (referrers) are from MY domain to keep from leeching ?

how do i make it so people cant attack my server ?


thank u

ALL HELP IS APPRECIATED EVEN IF THERE ARE SOME THINGS I AHVENBT MENTIONED AND U CAN HELP WITH !!!!!!!

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2003-08-22 at 12:01:16ID20717600
Tags

apache

,

server

,

web

,

secure

,

version

Topic

Apache Web Server

Participating Experts
2
Points
235
Comments
9

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Dos attackes on apache
    how to prevent DoS attackes on my apache web server (1.3.26) these attackes are on a particular site (100 get request per second). due to this server server httpd process exceed their limit . I also used tcp interest on cisco router but these attacks also exceed the tcp int...
  2. Dos Attacks
    hi, I am running MS IIS and Apache (on two different ports) for personal usage. Recently my servers frequently ran down. I heard it is possibly caused by DoS attacks. Could anyone tell me what that is and how I can find out what exactly caused the problem? Is there really ...
  3. Preventing DoS attacks...
    Hello, I'd like to hear some suggestion on how to prevent DoS attacks on a dedicated box, as far as possible. There are standard daemons running like apache, mysql, sshd.... and an IRC daemon. We had two attacks right now causing great latency for the whole network of ...
  4. Phishing and DoS attacks
    I am trying to stop a DoS attack. What is happening is some of the banks in our area are getting phished so much that they have come up with a script that answers phish emails w/ false data. The phish sites actually are catching on that the data is bad, and out of retaliati...
  5. May Day! Help - Attacked with mysterious virus!!
    Hello All, Since a fortnight, am observing strange problems within Network (clogs) and Virus Attacks on my Internet Cable based connection. This is a 256 Kbps line. Problem I can see is: a) A script or attacked is launched from a remote server/machine. It's domain a...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: sopiaz57Posted on 2003-08-23 at 21:29:18ID: 9210906

HI, im glad your using Apache.  The programs security is very good actually, you thinking of microsofts iis that is bad.

but most of the time its not the apache server that has the problem, its the other services that may be running/listening.
For example, portmap, ftp, telnet, ssh, u name it.  THerefore if you want a safe server, disable those services and only stick with the bare minumum.  If your always in front of the machine like u say, disable everything but HTTP.  Yes, even telnet and ssh.  the way to do it would be to use the service command, do a man service, or depending on your distro., do a setup command.  


Im sure there are more suggestions, but in general to harden security you need to disable buggy services.

 

by: samriPosted on 2003-08-25 at 00:07:26ID: 9214518

Hi Confident_1967,

What is you OS and version.  AS sopiaz57 mentioned; Apache is pretty mature, and very stabil.  If you ever need to worry, worry on OS (expecially if it is Windows machine).

Since you are new to apache it would be a good time to browse to http://httpd.apache.org/docs/ (or http://httpd.apache.org/docs-2.0/) , and browse to which ever area that might interest you.

Most specifically, you would need to look at the Security Tips section http://httpd.apache.org/docs-2.0/misc/security_tips.html

part of you question to prevent other peopel except those from you domain to download file, you could take a look at the example from Apache FAQ (http://httpd.apache.org/docs/misc/FAQ.html), specifically part on "Stealing Images" (http://httpd.apache.org/docs/misc/FAQ.html#image-theft):

SetEnvIf REFERER "www\.mydomain\.com" linked_from_here
SetEnvIf REFERER "^$" linked_from_here

<Directory /www/images>
    Order deny,allow
    Deny from all
    Allow from env=linked_from_here
</Directory>

You could customize the section to match your requirement.

Another part about not wanting people to attack your server -- take it offline, and never plug it to the network -- just kidding.  But it is true.  Bottom line is, try to minimize services running on the machine, and only allow things that are needed.  If you are behind firewall, only allow just the "required" network to comes in, and block others.

Security itself is a bit chuck to talk about, but minimizing the point of entry would be the basic steps that you could implement.

cheers.


 

by: sopiaz57Posted on 2003-08-25 at 05:25:32ID: 9215580

I found this, it's a great resource.
http://www.apacheweek.com/security/


Hey Samri, i see this a lot and never know how to read it. Can u briefly explain or do u have a site that explains?
thanks!

<Directory /www/images>
   Order deny,allow
   Deny from all
   Allow from env=linked_from_here
</Directory>

 

by: samriPosted on 2003-08-26 at 03:04:24ID: 9222538

hi sopiaz57;

you mean this config segment;
----
1. SetEnvIf REFERER "www\.mydomain\.com" linked_from_here
2. SetEnvIf REFERER "^$" linked_from_here
3.
4. <Directory /www/images>
5.   Order deny,allow
6.   Deny from all
7.  Allow from env=linked_from_here
8. </Directory>
----

Basically this will go to you apachec config file (main server config, or Vhost that you need to have this implemented).

let's go by line;
1. Set the environment var REFERER to linked_from_here if you are coming from www.mydomain.com (make sure you had this fixed to whatever you webserver ServerName is.
2. heck... i'm not sure what is this one too :0
line 4-8 is the directory where you want to protect.  What it really does - anything in /www/images will be denied unless if the environmet variable REFERER =linked_from_here.

This concept would work for most occassion but will failed if - 1. the browser does not transmit REFERER http_environment var, or REFERER is faked, which is possible.  

This would not be a foolproof solution, but should work in most ocassion.  don't be surprise, some adult pay-site is implementing this kind of authentication (and they sure do make money!).

hope this helps.

 

by: sopiaz57Posted on 2003-08-26 at 05:16:28ID: 9223228

Hey thats great thanks, you know whats always been confusion is the deny,allow statements. (line 5)  

Lets say for example i have my apache server up and running and i dont want anyone from 148.137.x.x to have access, is that what i would have.


<Directory /www/html>
order deny,allow
allow from all
deny from 148.137
</Directory>

Now thats just standard http server, not a virtual server setup.  If i were to run a virtual server (name based is what im planning) i would just put that directive in my <virtual host> </virtual host> tag?

 

by: confident_1967Posted on 2003-08-26 at 11:18:21ID: 9226285

operating system is windows xp home edition (but i have many operating systems to choose from ..what would be best to run this ?  i can get anything)

thanks for everything guys ...please keep it comming... my wish is to sercure every freaking hole i can.

im just so new to all of this ... and i am gradually reading all of this ... please keep it comming ...will go over everything  and award points in a few days as the expertice rolls in.

THANKS AGAIN !!!!!!!!!!

 

by: samriPosted on 2003-08-27 at 05:53:51ID: 9231918

confident;

Looking at the attack pattern nowadays, most will target Windows based machine, fewer are on Unix, and MacOS would be even lesser.  So with this trend, you may opt to stay away from Windows (personal opinion). I would (personally) choose unix based OS, freebsd, linux, or even solaris.  Personal choice - linux (redhat), for no particular reason.  However, to stay alive in unix, you may need to have some unix technical skills.  there are lots of book, howtos, and even website that you could visit to get some hints/tips.

If you were to go for RH, it will come with it's own firewall (and it's quite good).  Install the firewall, and only allow certain services to pass thru.

sopiaz:  I am not trying to be rude, but most of you queries may qualify as another new Question.  Hints:  Take a look at Apache docs website and check on Core Modules under "Allow" directive.  The website would be http://httpd.apache.org/docs/

cheers all.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...