Skip to main content
NYU is reconvening for classes in-person and remotely. Resources, information, and official updates from NYU regarding the current status of COVID-19 and its impact on the University community are available here, which includes detailed links for students, faculty and staff.
Logo of The Courant Institure of Mathematical Sciences
Courant Login
Logo of the Courant Institute of Mathematical Sciences
  • Institute
    • Mathematics external link
    • Computer Science external link
  • Academics
    • Undergraduate Programs
      • Computer Science external link
      • Mathematics external link
    • Master's Programs
      • Computer Science external link
      • Mathematics external link
      • Data Science external link
      • Scientific Computing external link
      • Information Systems external link
      • Math Finance external link
      • Computing, Entrepreneurship & Innovation external link
    • PhD Programs
      • Computer Science external link
      • Mathematics external link
      • Atmosphere Ocean Science external link
    • Prizes & Fellowships
  • Research
    • Research Areas
    • Research Centers
    • Faculty Recognition
  • People
    • Institute Leadership
    • Faculty
    • Postdocs & Research Staff
    • Graduate Students
    • Staff
    • Directory (Courant access only)
  • Calendars
    • Weekly Seminar Bulletin
    • Special Events and Activities
    • Seminars List
    • Classroom Calendar & Reservations (NYU access only)
    • NYU Academic Calendars external link
  • Resources
    • Faculty, Staff, & Students
    • Visitor Information
    • Computing & Technology
    • Courant Library
  • About Us
    • Contact Information
    • Directions
    • Newsletters
    • History of the Courant Institute
    • Employment Opportunities at Courant
  • Giving

Computing

  • Home
  • Search

User Services

  • Computer Accounts
  • Network Access
  • Mail
  • Web Hosting
  • Databases
  • Version Control
  • Storage and Backups
  • NYU IT Resources and Policies

Resources

  • Desktop Computing
  • Computer Labs
  • Compute Servers
  • Printing
  • Scanners, Copiers, and DVD Burners
  • Classroom Facilities
  • Remote Teaching
  • Frequently Asked Questions

Platforms

  • Linux
  • Windows
  • Mac

Software

  • Overview
  • Linux
  • Cybersecurity

Announcements

  • General
  • Critical
 
  • Computing
    • Home
    • Search
  • User Services
    • Computer Accounts
    • Network Access
    • Mail
    • Web Hosting
    • Databases
    • Version Control
    • Storage and Backups
    • NYU IT Resources and Policies
  • Resources
    • Desktop Computing
    • Computer Labs
    • Compute Servers
    • Printing
    • Scanners, Copiers, and DVD Burners
    • Classroom Facilities
    • Frequently Asked Questions
  • Platforms
    • CentOS
    • Windows
    • Mac
  • Software
    • Overview
    • Linux
    • Windows
  • Announcements
    • General
    • Critical

Example .htaccess file Edit Title

Edit Body
#### Restricting access to users based on NYU NetID ####

Order deny,allow
AuthType Basic
AuthName "Authorized NYU users only!"
AuthBasicAuthoritative On
AuthBasicProvider ldap-nyu
require valid-user
satisfy all


#### Restricting based on CIMS groups ####

# To restrict access to users with CIMS accounts that
# are in a particular group by
# querying the CIMS ldap server

# Not available at this time

#### Restricting based on .htpasswd file ####

# You can password protect a web directory so that only a given
# set of users can access it. 
# You'll need to create a .htpasswd file that is referred 
# to in your .htaccess file. The .htpasswd should reside outside
# your web hierarchy for security reasons.
# To create and/or add users to your .htpasswd file use the 
# /usr/bin/htpasswd command. 
#
# note: set the permissions on .htpasswd as follows 
# "chmod 604 .htpasswd"
# and make sure the permissions on "some-nonweb-dir" are set to 701
#
AuthType Basic 
AuthUserFile /home/username/some-nonweb-dir/.htpasswd
AuthName "Members ONLY"
require valid-user

#### Restricting based on domains ####

# You can also restrict access to a web directory based on domains
#
deny from all 
allow from .cs.nyu.edu .cims.nyu.edu  .net.nyu.edu .med.nyu.edu
AuthType Basic 
AuthName "Members ONLY"

Edit All
  • New York University
  • Faculty of Arts and Science
  • College of Arts and Science
  • Graduate School of Arts and Science
  • Accessibility

Please e-mail comments or corrections to: jroznfgre@pbhenag.alh.rqh
For other inquiries, please see the list of contacts.
© New York University