.htaccess tutorial

htaccess Elite


Block everyone except 1 IP Address

Security in htaccess: htpasswd, 401 Authentication

Block everyone except 1 IP Address

New postby produke » 03 Oct 2006 02:13

Code: Select all
ErrorDocument 403 http://www.someothersite.com
Order deny,allow
Deny from all
Allow from 24.33.65.6


Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_HOST} !^24\.33\.65\.6$
RewriteRule ^(.+) http://www.someothersite.com$1
User avatar
produke
 
Posts: 242
Joined: 25 Sep 2006 04:48

Return to Security and Authentication