View Full Version : blocking?
Unregistered
8-3-02, 05:31 PM
Is there anyway I can block someone's IP address from reaching my website?
hammondhill
8-3-02, 05:39 PM
Sure, you could put the code below into a file called .htaccess in your htdocs directory.
1. Make a file called htaccess.txt in notepad
2. Put this code in it (of course replacing 123.45.6.7 with the IP you wish to block)
order allow,deny
deny from 123.45.6.7
allow from all
3. FTP this file to your htdocs folder in ASCII mode and chmod it to 700
4. Rename this file to ".htaccess" (without the quotes and with the dot)
Good Luck!!
Originally posted by hammondhill
Sure, you could put the code below into a file called .htaccess in your htdocs directory.
1. Make a file called htaccess.txt in notepad
2. Put this code in it (of course replacing 123.45.6.7 with the IP you wish to block)
3. FTP this file to your htdocs folder in ASCII mode and chmod it to 700
4. Rename this file to ".htaccess" (without the quotes and with the dot)
Good Luck!!
Is there a good website with a summary / Good presentation, on the various htaccess commands ?
The above two commands are pretty easy to understand..
G.
Here's a start: http://help.powweb.com/tutorials/index.php
Just pick what you're trying to do from the .htaccess section. Good stuff there!
Robert
hammondhill
8-3-02, 06:05 PM
Here is another good site with various .htaccess commands: http://www.javascriptkit.com/howto/htaccess.shtml
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.