top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How limit directives at htaccess file

0 votes
344 views

I really don't understand some things about htaccess. Reading, the advice is: never permit htaccess to users. So, can I enable htaccess but only for personalize something like this?

ErrorDocument 400 /errors/badrequest.html
ErrorDocument 401 /errors/authreqd.html
ErrorDocument 403 /errors/forbid.html
ErrorDocument 404 /errors/notfound.html
ErrorDocument 500 /errors/serverr.html

and obviously deny all other directives? so an user with own htaccess file, can only personalize that directives.

posted Aug 6, 2013 by Deepankar Dubey

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes
answer Aug 6, 2013 by Naveena Garg
Similar Questions
+1 vote

I googled but cant figure it out.

0 votes

It seems that I've hit a size limitation when adding unwanted IPs to a "Deny From" line.
Is there any place where this is specified?
Also, if I hit the max length on a "Deny From" line, can I add another "Deny From" line?

(Running CentOS 6, and the following version of Apache: httpd-2.2.15-28.el6.centos.x86_64)

...