Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Block Unwanted Visitors with .htaccess

...

Example .htaccess

Code Block
languagetext
order deny,allow
deny from all
allow from 10.231.
allow from 10.139.
allow from 1.11.22.
allow from 1.11.1.1

...

Block Unwanted Visitors with .htaccess using password

...

Example .htaccess

Code Block
languagetext
AuthUserFile /path/to/htpasswd/file/.htpasswd
AuthGroupFile /dev/null
AuthName "Name of Area"
AuthType Basic
require valid-user

...