Forum Moderators: phranque
Ok, am I all wet or is the quoted stuff above in inverse order. Seems like it should be
order allow, deny
allow from all
deny from 65.222.106.121
If the allow from all comes last, doesn't that negate the deny from line?
Oh, if I am just all wet, please be kind and delete this post so my ignorance isn't preserved for all time.
Happy holidays
However, I don't know if the Savant Server supports Apache .htaccess and/or mod_access directives within it.
Anybody else running Savant?
Jim
thanks
.htaccess is a text file, like any file written on notepad. It has one directive per line. Some of these will block IPs or domains.
Once the .htaccess has been written all it takes is uploading it to your root directory. At least, that is what I did on my sites and has worked fine.
If noone posts the code for you, I'll do it later today when I get home.
When I save it in the root do I simply save it as .htaccess?
Or do I need to give it a name like "deny.htaccess"
Or do I simply save it with .txt extension? ie. "deny.txt"?
It must be named ".htaccess" - that's it.
If you write it on a Windoze machine, you will have to call it something else on the local machine, and then rename it once you've uploaded it to your server. This is a basic incompatibility between Windoze and Unix file-naming conventions - Windoze thinks ".htaccess" is a blank filename with a filetype of "htaccess", and insists that you give the file a name.
I call mine "dot_htaccess.txt" locally, and then rename it to .htaccess once it's on my server.
Jim
It is likely still there, but your host is set up to "hide" system files. If the file causes a problem (because it contains errors, for example), just create a blank file, upload it and rename it to .htaccess, thus replacing the bad file.
You might want to ask your hosting company to fix the visibility problem.
Jim
I do not see mines either.
On windows, I believe there is an advance setting to "show all hidden files", that will make .htaccess extensions show up on Windows.
Using Dreamweaver this can be a problem when ftpying...Just trust the file is there.