corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » htaccess - Help


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author htaccess - Help
VrsTurbo
Premium Member

Registered: 8th Jun 10
User status: Offline
1st Nov 12 at 11:23   View Garage View User's Profile U2U Member Reply With Quote

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
1st Nov 12 at 11:25   View Garage View User's Profile U2U Member Reply With Quote

<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
1st Nov 12 at 18:53   View User's Profile U2U Member Reply With Quote

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.




 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
htaccess Melville Geek Day 3 518
14th Dec 05 at 22:17
by Melville
 
.htaccess folk - need help Dom Geek Day 7 616
21st Jun 06 at 23:37
by Dom
 
Can i add a password onto a cerain section on my site? Matt L Geek Day 14 340
14th May 09 at 12:07
by noshua
 
Website/HTML Code wookies please! Bart Geek Day 9 582
10th Dec 09 at 11:43
by ed
 
Mobile redirect Gary Geek Day 14 451
8th Aug 12 at 10:34
by Dom
 

Corsa Sport » Message Board » Off Day » Geek Day » htaccess - Help 28 database queries in 0.0073180 seconds