mashacealde
07-10-2003, 07:42 AM
hi!
i found this thread (http://www.lissaexplains.com/forum/showthread.php?threadid=18998) about banning a person's ip address but do i just add this code to my page or do i have to do more than that?
<Limit GET>
order allow,deny
deny from 128.23.45.
deny from 207.158.255.213
allow from all
</Limit>
or do i copy and paste it on notepad and save it as an .htaccess file and upload it?
sorry, i can't understand anything...
Sami Fouad
07-10-2003, 10:14 AM
.htaccess files are stored in Directories not within Site code.
Create a file called '.htaccess' and then the snipplet of code you have should block addresses for that particular directory.
bellportal
07-10-2003, 12:56 PM
To protect just one directory, just create a .htaccess file with the code and upload it to the directory you want to protect.
mashacealde
07-10-2003, 02:32 PM
oh, so i just copy & paste it in notepad then save as an .htacces file and then upload it to my account. i am hosted on a free server and my site address is http://freewebz.com/mashacealde/ so does it mean that i just need to upload it to freewebz.com/mashacealde/?
btw, does anybody here knows if it actually works on freewebz?
if it is a free host, htaccess probably will not work or be allowed.
Dude128
07-11-2003, 03:15 AM
just so you know, I believe you have to switch your allow and deny lines. right now the way you have it, you're saying don't allow these two, but allow all anyway. you have to allow all, then limit that. that allow line is basically just undoing everything the first 2 lines to. also, it says right there- the order is allow, then deny :)
bellportal
07-11-2003, 09:43 AM
If you are not sure whether your host supports .htaccess, upload the file and see if it works (i.e. try creating a 404 error page in the .htaccess file and then browse to a non-existent page in your site and see if you get the error page.)
HTH,