Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


htaccess_files

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
htaccess_files [2021/09/30 14:38] juckinshtaccess_files [2021/09/30 14:39] juckins
Line 34: Line 34:
  
 [[https://www.inmotionhosting.com/support/website/redirects/setting-up-a-301-permanent-redirect-via-htaccess|Other .htaccess tricks]] [[https://www.inmotionhosting.com/support/website/redirects/setting-up-a-301-permanent-redirect-via-htaccess|Other .htaccess tricks]]
 +
 +[[https://electrictoolbox.com/apache-password-protect-allow-ip/|Use password protection but allow from IP address]]
 +
 +  AuthUserFile /path/to/.htpasswd
 +  AuthName "Restricted Access"
 +  AuthType Basic
 +  require user [username]
 +  satisfy any
 +  deny from all
 +  allow from 192.168.1.
 +  allow from 10.1.1.45
 +  allow from 172.16.5.106
htaccess_files.txt · Last modified: 2021/09/30 14:40 by juckins