+ 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
    Location
    Milton Keynes
    Posts
    3,825
    Blog Entries
    2
    Thank Post
    433
    Thanked 1,175 Times in 669 Posts
    Rep Power
    329

    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. IDG Tech News

  3. #2

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    9,565
    Thank Post
    306
    Thanked 884 Times in 794 Posts
    Rep Power
    211
    I doubt it as I would think the .htaccess would restrict from internal as well.

    Ben

  4. #3

    SYSMAN_MK's Avatar
    Join Date
    Sep 2005
    Location
    Milton Keynes
    Posts
    3,825
    Blog Entries
    2
    Thank Post
    433
    Thanked 1,175 Times in 669 Posts
    Rep Power
    329
    I was hoping i could stick some form of ip range in it to allow access from the schools ip range.

  5. #4

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    9,565
    Thank Post
    306
    Thanked 884 Times in 794 Posts
    Rep Power
    211
    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

  6. Thanks to plexer from:

    SYSMAN_MK (15th April 2008)

  7. #5
    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,056
    Blog Entries
    1
    Thank Post
    104
    Thanked 439 Times in 380 Posts
    Rep Power
    114
    Code:
    Allow from 10.0.0.0/16
    Allow from .school.lea.sch.uk
    require valid-user
    satisfy any

  8. Thanks to Geoff from:

    SYSMAN_MK (15th April 2008)

  9. #6

    SYSMAN_MK's Avatar
    Join Date
    Sep 2005
    Location
    Milton Keynes
    Posts
    3,825
    Blog Entries
    2
    Thank Post
    433
    Thanked 1,175 Times in 669 Posts
    Rep Power
    329
    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. Replies: 2
    Last Post: 5th November 2006, 06:14 PM
  5. Storm Control
    By sidewinder in forum 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
  •