My os is windows xp. I doubt if .htaccess will work with it
.htaccess files are not OS dependant but rather are server dependant, as I explained they are an extension to the server configuration file httpd.conf on a directory by directory (folder by folder) basis.
htaccess.txt is purely a Windows issue because it does not know what a dot file is and so baulks at creating or editing then saving a file such as .htaccess - usually overcome by using in a text editor the Save As..
function and then the All files (*)
setting - htaccess.txt will not be recognised by Apache only .htaccess has that privilege.
I am assuming nothing has changed and all the folders you are using the .htaccess files in are located in the htdocs (DocumentRoot) tree.
The <Limit> directive docs.http://httpd.apache.org/docs/2.2/mod/core.html#limit
The order directive docs.http://httpd.apache.org/docs/2.2/mod/mo ... html#order
The order, allow and deny
directives are all on the same docs page so are easily referenced.
I have provided the links to the docs so you can better understand what you are trying to achieve.
Here is a link to the full list of directives:http://httpd.apache.org/docs/2.2/mod/directives.html
and the quick reference guide:http://httpd.apache.org/docs/2.2/mod/qu ... rence.html
Remember that all things Apache are case sensitive so <Limit>...</LIMIT>
may also give an error.
So for your example that you posted please consult the docs for explanations
- Code: Select all
<Limit GET HEAD POST>
allow from all
deny from xxx.xxx.xx.xxx
Any errors that may occur from a .htaccess file are often explained in the \xampp\apache\logs\error.log file.