SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast me4all55's Avatar
    Join Date
    Sep 2011
    Location
    India
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to Make My Website Open only on Few Ip Address - Means only admin can Login

    Dear all

    Is it Possible to make website open only on Few IP addresses. I want only admins can login to my website from different location using only their personal computer. If someone try to access from a computer other than assigned IP address he should not be able to view my site. Please let me know if it is possible.

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,055
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Hi,

    You can use a .htaccess file to limit access to your website.
    Here's how:

    Create a file in your website's root directory and name it .htaccess
    Edit the file with a text editor and enter
    Code:
    order deny,allow
    deny from all
    allow from xxx.xxx.xxx.xxxx
    allow from xxx.xxx.xxx.xxxx
    Replace xxx.xxx.xxx.xxxx with the appropriate IP addresses.

    This will reply on your users having fixed IP addresses, however.
    Maybe it would be better to consider password protecting the site instead.
    You can also do this using .htaccess.
    Let me know if you want me to tell you how.

  3. #3
    SitePoint Enthusiast me4all55's Avatar
    Join Date
    Sep 2011
    Location
    India
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi pullo

    Thank u so much for the reply. please let me know the password protecting method also.

  4. #4
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,055
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Hi there.
    The first thing I would do is find out if your hosting company provides such a service.
    Who is your website hosted with?

  5. #5
    SitePoint Enthusiast me4all55's Avatar
    Join Date
    Sep 2011
    Location
    India
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually it's a dating site. I want to use it for offline purpose. I still not hosted that site. Planning to host in sitevalley.

  6. #6
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,055
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Ah ok.
    Do you just have the files stored on your PC or do you have a server running locally?
    if so, which one?


Tags for this Thread

Bookmarks

Posting Permissions

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