Hide Webpage

Posted on 2011-05-10
Last Modified: 2012-08-14
Is there a way to keep everybody from seeing a website?  Can you setup in the htaccess file only certain IP addresses that can actually view a website?

If so, can you give me an example on how to write it?

I have a website/client that does not want anybody to see but a handful of people.  Any suggestions?
Question by:rgranlund
    LVL 6

    Expert Comment

    You could create a password prompt to access the site, however preventing a domain from being accessible to the entire internet, no.
    LVL 3

    Accepted Solution

    Try adding to .htaccess
    order allow deny
    deny from all
    allow from <your_IP>

    Open in new window

    LVL 37

    Expert Comment

    by:Gerwin Jansen
    You could setup a proxy that allows 'your' clients to view the site. Other clients (not wanted ones) could be redirected to see a different site. This way 'your' site is somewhat hidden.
    LVL 4

    Expert Comment

    The best way to grant access to certain persons is using passwords.
    If you use IP addresses and deny certain IPs using .htaccess, if any user is using dynamic IP, he/she will eventually end up being denied access to the site.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
    This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
    In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
    The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now