Mario_AU
02-13-2008, 12:21 PM
hi everyone,
i think i may have just found the definitive forums for my webmastering needs. :thumbsup:
i'm a fast and willing learner and if full/correct instructions are given can follow them to a tea. :rolleyes:
now then - i'm messing around with the magic of .htaccess and am coming to grips with it just dandy. i am up to here (http://www.javascriptkit.com/howto/htaccess5.shtml) atm. i can ban users just fine so i'm happy. not that i need/want to. anyway i'd like to know if it is possible to ban a user using his ip for a specific directory only? as i tried now i can ban from the whole site only. i did place the .htaccess file into a directory i wanted to ban myself from but could still see it. so is this a case of you either ban the whole site or nothing ?
and as a side note, regarding the complete ban, when i tested that, it worked just fine, and got this error:
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
1.) what number error is this ? (i'd like to use my own, as i have already customized 401, 403* and 404)
2.) what's the problem it has with the 403 error ? could it be because i customized my 403 and as it tries to display it, it can not, since the html file is under /assets/html/403.html, and thus since the whole site is banned/blocked the user can not access it. sort of a catch 22 ???
ok, then thanks.
awaiting your swift reply!!!
ps: credit to the writer of the tutorial i'm referring to. :thumbsup:
ps: does the .htaccess file have a syntax like other config files that you can rem lines out ? like for other files you may have: "rem" or "#" or ";" because i'd like to leave some stuff in there but have it disabled. make sense what i just asked ??
pps: regarding this (http://www.javascriptkit.com/howto/htaccess11.shtml), i have done the last part, and both files are in upper case, and they both disappear after i upload them to site with ftp. when i go to the specific directory i can see the contents all right, but i see no top or bottom text (ie: the contents of either HEADER or README)
* 403 works but i think i need to redo it as it's not exactly kosher. more on that later.
i think i may have just found the definitive forums for my webmastering needs. :thumbsup:
i'm a fast and willing learner and if full/correct instructions are given can follow them to a tea. :rolleyes:
now then - i'm messing around with the magic of .htaccess and am coming to grips with it just dandy. i am up to here (http://www.javascriptkit.com/howto/htaccess5.shtml) atm. i can ban users just fine so i'm happy. not that i need/want to. anyway i'd like to know if it is possible to ban a user using his ip for a specific directory only? as i tried now i can ban from the whole site only. i did place the .htaccess file into a directory i wanted to ban myself from but could still see it. so is this a case of you either ban the whole site or nothing ?
and as a side note, regarding the complete ban, when i tested that, it worked just fine, and got this error:
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
1.) what number error is this ? (i'd like to use my own, as i have already customized 401, 403* and 404)
2.) what's the problem it has with the 403 error ? could it be because i customized my 403 and as it tries to display it, it can not, since the html file is under /assets/html/403.html, and thus since the whole site is banned/blocked the user can not access it. sort of a catch 22 ???
ok, then thanks.
awaiting your swift reply!!!
ps: credit to the writer of the tutorial i'm referring to. :thumbsup:
ps: does the .htaccess file have a syntax like other config files that you can rem lines out ? like for other files you may have: "rem" or "#" or ";" because i'd like to leave some stuff in there but have it disabled. make sense what i just asked ??
pps: regarding this (http://www.javascriptkit.com/howto/htaccess11.shtml), i have done the last part, and both files are in upper case, and they both disappear after i upload them to site with ftp. when i go to the specific directory i can see the contents all right, but i see no top or bottom text (ie: the contents of either HEADER or README)
* 403 works but i think i need to redo it as it's not exactly kosher. more on that later.