A Folder for only for private

briapv

New Member
Messages
47
Reaction score
0
Points
0
Is there a way to make a place(Folder) only for family use (like only 3-4 IP's)
Please if possible tell me?
 

tittat

Active Member
Messages
2,478
Reaction score
1
Points
38
The easiest way to do it will be password protecting your folder.
It can be done from your cpanel.
Go to cpanel>>Password Protect Directories.
 

subsilver

New Member
Messages
5
Reaction score
0
Points
0
Is there a way to make a place(Folder) only for family use (like only 3-4 IP's)
Please if possible tell me?
create text file .htaccess inside the directory you want to protect. Put following code inside the file:
Code:
AuthName "My Secret Area"
AuthType Basic  
<Limit GET POST>
order deny,allow
deny from all
allow from IP_ADDRESS_1
allow from IP_ADDRESS_2
</Limit>
Replace IP_ADDRESS_1, IP_ADDRESS_2 with real IP addresses you want to grant access to. You can add as many "allow from IP_ADDRESS" lines as you need.
 
Last edited:

taha116

Member
Messages
505
Reaction score
0
Points
16
Oh nice bit of code! but that may be anoying if you have a dynamic Ip wich most ppl have so if it stops working and starts blocking u just check your Ip it probably just changed
 

briapv

New Member
Messages
47
Reaction score
0
Points
0
Ye really nice piece i gonna thank you with 50 creds really thanks
 
Last edited:
Top