Portal Home > Knowledgebase > Articles Database > deny from all in .htaccess


deny from all in .htaccess




Posted by theguy, 06-15-2010, 09:15 PM
does deny from all always work? is it a 100% method to block users from important content and only allow it from particular ip# this is what i'm using Options +FollowSymLinks Order deny,allow Deny from all allow from 0.0.0.0 (my ip#) or is it possible for hackers to visit the page? if it's a 100% method to block users then what do you recomend I should use without actually adding a user name and a password?

Posted by dreamlandbeach, 06-16-2010, 04:34 AM
as i know, using deny from all will completely block any access to the page.

Posted by VIPoint, 06-16-2010, 05:35 AM
Deny from all will block all the users from accessing the website. They will get a 403 forbidden error while accessing the page.

Posted by theguy, 06-16-2010, 08:30 AM
using this in .htaccess will deny all from accessing the page except my ip # Options +FollowSymLinks Order deny,allow Deny from all allow from 0.0.0.0 i like to know if it work all the time or is it possible for someone to actually hack it

Posted by dreamlandbeach, 06-16-2010, 09:28 AM
yes it will work all the time. But it will only block accessing from web (port 80) .

Posted by theguy, 06-16-2010, 09:32 AM
how can i make it block from all ports

Posted by dreamlandbeach, 06-16-2010, 10:39 AM
use firewall instead Last edited by dreamlandbeach; 06-16-2010 at 10:40 AM. Reason: typo

Posted by IndiaNets, 06-16-2010, 11:06 AM
htaccess is meant to be parsed by apache. So, only http access will be blocked to rest of the world. Hackers (any one infact) can access the server without any problem with any other methods like ftp, ssh etc etc depending on the availability. Look at CSF, that may become what exactly you need.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
ServerTokens problem (Views: 574)
PHP exploit (Views: 489)