htaccess, forbidden |
htaccess, forbidden |
![]()
Post
#1
|
|
![]() Death is a promise given to us at birth ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 4,757 Joined: Mar 2004 Member No: 7,459 ![]() |
you know there a htaccess code for "forbidden," but how can you forbid some one from viewing a certain folder on your site.
|
|
|
![]() |
![]()
Post
#2
|
|
![]() :hammer: ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 9,849 Joined: Mar 2004 Member No: 7,700 ![]() |
You can create a page in the folder called "index.html".
The "index.html" is where you can type "FORBIDDEN" or something to show the visitors that they can't enter.. or view the stuff in that folder. |
|
|
![]()
Post
#3
|
|
![]() You'll find me in your dreams. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 ![]() |
Just a certain folder? Because you can disable certain directories.
[ http://www.tera-byte.com/htaccess.html#error_pages ] Um.... Yeah..... I don't think you can do specific folders.... I dunno, but you could password protect the file. -shrug- |
|
|
![]()
Post
#4
|
|
![]() Death is a promise given to us at birth ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 4,757 Joined: Mar 2004 Member No: 7,459 ![]() |
ok i figure it out, but how do you have customize forbidden for this, and if you have more than one htaccess (ip banned, anti-leech) won't they overwrite each other?
|
|
|
![]()
Post
#5
|
|
![]() You'll find me in your dreams. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 ![]() |
.... I thought you just added them all into the same file. Or does that only work for the error pages?
|
|
|
![]()
Post
#6
|
|
![]() Death is a promise given to us at birth ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 4,757 Joined: Mar 2004 Member No: 7,459 ![]() |
i dunno, cuz every tutorials i read they said "make new files and call it 'htaccess' "
|
|
|
![]() ![]() |