On Tue, Sep 20, 2005 at 10:52:17AM +0800, Chris Haravata wrote: > i want to deny a particular IP from accessing my site, and assuming > that the IP is 192.168.0.10, do i just put: > > deny from 192.168.0.10 > > in .htaccess?
You have to put an appropriate Order directive above that line unless you have already done so in httpd.conf. Note that the last directive in Order directive becomes the default. So by "Order Deny,Allow", if you didn't define any "Deny from" after that, all access will be allowed. You'll also need to have a corresponding AllowOverride directive in httpd.conf for you to be able to use Order directive in .htaccess. > or is there a container? It depends on what you're exactly trying to accomplish. Mind you that what you write in .htaccess is exactly you write inside <Directory /dir/where/htaccess/is/located> ... </Directory> in httpd.conf. HTH -- $_=q:; # SHERWIN # 70;72;69;6e;74;20; 27;4a;75;73;74;20; 61;6e;6f;74;68;65; 72;20;50;65;72;6c; 20;6e;6f;76;69;63; 65;27;:;;s=~?(..); ?=pack q$C$,hex$1; ;;;=egg;;;;eval;;; _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

