+ Post New Thread
Results 1 to 6 of 6
Web Development Thread, Access Control Of Website in Coding and Web Development; I am updating an intranet site and I want the staff to be able to access it from within school ...
  1. #1

    SYSMAN_MK's Avatar
    Join Date
    Sep 2005
    Posts
    4,005
    Thank Post
    489
    Thanked 1,340 Times in 728 Posts
    Rep Power
    427

    Access Control Of Website

    I am updating an intranet site and I want the staff to be able to access it from within school freely, but be prompted for a username/password when accessed from outside school.

    Can this be done via the .htaccess file?

    Cheers

  2. #2

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,343
    Thank Post
    624
    Thanked 1,584 Times in 1,421 Posts
    Rep Power
    414
    I doubt it as I would think the .htaccess would restrict from internal as well.

    Ben

  3. #3

    SYSMAN_MK's Avatar
    Join Date
    Sep 2005
    Posts
    4,005
    Thank Post
    489
    Thanked 1,340 Times in 728 Posts
    Rep Power
    427
    I was hoping i could stick some form of ip range in it to allow access from the schools ip range.

  4. #4

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,343
    Thank Post
    624
    Thanked 1,584 Times in 1,421 Posts
    Rep Power
    414
    Or maybe not:

    Apache Week. Using User Authentication

    Says that you can set it so that hostname can be used to allow access, so if they are inside the company no username password required but outside it is.

    Ben

  5. Thanks to plexer from:

    SYSMAN_MK (15th April 2008)

  6. #5

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    Code:
    Allow from 10.0.0.0/16
    Allow from .school.lea.sch.uk
    require valid-user
    satisfy any

  7. Thanks to Geoff from:

    SYSMAN_MK (15th April 2008)

  8. #6

    SYSMAN_MK's Avatar
    Join Date
    Sep 2005
    Posts
    4,005
    Thank Post
    489
    Thanked 1,340 Times in 728 Posts
    Rep Power
    427
    Cheers guys. Ended up going with the following code. Works a treat.

    Code:
     Require user staff
      Order allow,deny
      Allow from .%schools domain%
      Satisfy any

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 16
    Last Post: 24th July 2009, 10:49 PM
  2. Network Access Control Solutions
    By Simcfc73 in forum Network and Classroom Management
    Replies: 5
    Last Post: 23rd October 2007, 01:37 PM
  3. Vista UAC - User Access Control
    By Nij.UK in forum Windows Vista
    Replies: 17
    Last Post: 6th June 2007, 10:19 AM
  4. Multiple internal website access with one ip from the net
    By binky in forum Wireless Networks
    Replies: 2
    Last Post: 5th November 2006, 05:14 PM
  5. Storm Control
    By sidewinder in forum Wireless Networks
    Replies: 1
    Last Post: 17th October 2006, 09:45 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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