Results 1 to 2 of 2

Thread: issue with server security

  1. #1
    bluemonday is offline New Member: Posts Will Be Moderated
    Join Date
    Mar 2011
    Posts
    1

    issue with server security

    Hi

    We have a web portal that is going to be running under a subdomain (e.g. sub.domain.com) If the DNS A record of the parent domain (e.g. domain.com) was changed in error to point at the server IP address, as well as the subdomain A record, would you normally expect the entire contents of the server to be publically available? This actually happened to us, and I'm trying to determine whether the developers could/should have had some sort of security (an htaccess file?) to prevent the data being made available in this way and whether they were negligent.
    I am not a developer, so I apologise for any innacuracies!


    thank you

  2. #2
    Join Date
    Feb 2007
    Location
    Ireland
    Posts
    1,007
    DNS A records must contain IP addresses. Not sure what way your virtual hosts are setup, so I won't comment (as it seems someone is going to get in trouble here).

    On a more general note, it's common practice to disable directory indexes (or place blank index files in each directory). Disabling directory indexes in the virtualhost is the cleanest and quickest method. It can also be done in the .htaccess file, but in a production environment .htaccess files should be disabled as they introduce a performance overhead.

    e.g.
    Code:
    <VirtualHost *:80>
        ServerName webdevforums.com
        ServerAdmin postmaster@webdevforums.com
        DocumentRoot "/var/web/webdevforums/www"
    
        <Directory "/var/web/webdevforums/www">
            Options -Indexes # Disable viewing of directory indexes
            AllowOverride None # Disallow .htaccess file
        </Directory>
    </VirtualHost>
    “The best thing about a boolean is even if you are wrong, you are only off by a bit.”

Similar Threads

  1. Server issue or PHP? - Contact Form Not Sending HTML correctly?
    By Editor08 in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 03 Oct 2009, 04:37 PM
  2. IE7 issue? Or server issue? Or javascript? Very odd!
    By db777 in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 20 Apr 2009, 10:14 PM
  3. Back up server issue
    By varun8211 in forum Web Hosting and Domain Names
    Replies: 1
    Last Post: 11 Oct 2005, 10:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •