Re: limiting diretory/file content?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




http://www.site.org/whatever/something.html and tries to access
http://www.site.org/whatever/

I would like it on a directory basis, a file basis may be needed later
but not for now.

Which rule would you set to disable access? Rule based on IP for instance?

If a user tries to access a forbidden directory I wish to display a custom message to them like "Stop that!" or something so also how may I do that?

You can do that by .htaccess combining rule for no access and customized page for message.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux