Posted by:
CyberSpatium
(---.hsd1.or.comcast.net)
this is an easy one.... You need to place a file in your www folder called
.htaccess Useing the
deny from setting, you can block IP addresses, IP blocks, and even certiain websites.
To deny an IP address, use:
order allow,deny
deny from 123.45.6.7
allow from allTo deny an IP block, use:
order allow,deny
deny from 123.45.6.
allow from allIf you want to ban a website, use this format:
order allow,deny
deny from .somedomain.com
allow from allAfter you have written your
.htaccess file, save it, and restart apache. Also, make sure Windows does not save the file as htaccess.txt, or it will not work.
Post Edited (03-12-06 23:50)
CyberSpatium----------------------WAMP Forum Admin
Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.