VrsTurbo
Premium Member
Registered: 8th Jun 10
User status: Offline
|
Need some help configuring htaccess never used it before
Say i have this structure on a domain
Folder1 - Another website
Folder2 - Another website
Folder3 - Forum
Id like to be able to set up access to only one folder
So Folder1 & Folder2 has normal access everyone can see it but on folder3 i only want certain IP's to gain access.
Help please
|
VrsTurbo
Premium Member
Registered: 8th Jun 10
User status: Offline
|
<Directory /Folder3>
order allow,deny
deny from all
<Directory>
That correct?
Its done a per folder basis sorted it any way
order allow,deny
allow from 123.123.123.123 #specify a specific address
allow from 123.123.123.123/30 #specify a subnet range
allow from 123.123.* #specify an IP address wildcard
deny from all
[Edited on 01-11-2012 by VrsTurbo]
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
Create a new .htaccess file under the 'Folder3' directory and then use -
code: order deny, allow
deny from all
allow from 1.2.3.4
allow from 22.33.44.
allow from 7.8.
|