Apache Access Control

Source: Internet
Author: User
Tags php class

  1. Disable access to certain files/directories
    Add the Files option to control, such as not allowing access to the. inc extension file, to protect the PHP class library:
    Code:

    650) this.width=650; "class=" Exp-image-default "alt=" How to set Apache Access Restrictions "src=" http://e.hiphotos.baidu.com/exp/w=500/ Sign=f364ad509d16fdfad86cc6ee848e8cea/4034970a304e251fc141b283a786c9177f3e5312.jpg "style=" border:0px; "/>


  2. Prohibit access to certain specified directories: (regular match can be done with <DirectoryMatch>)
    Code:

    650) this.width=650; "class=" Exp-image-default "alt=" How to set Apache Access Restrictions "src=" http://g.hiphotos.baidu.com/exp/w=500/ Sign=fe9f18a754e736d158138c08ab514ffc/b2de9c82d158ccbf2a10e34119d8bc3eb1354118.jpg "style=" border:0px; "/>


  3. Prohibit by file matching, such as prohibiting all access to images:
    Code:

    650) this.width=650; "class=" Exp-image-default "alt=" How to set Apache Access Restrictions "src=" http://d.hiphotos.baidu.com/exp/w=500/ Sign=959459b83a87e9504217f36c2039531b/b8389b504fc2d562a6a18696e71190ef76c66c1b.jpg "style=" border:0px; "/>


  4. Forbidden access for URL-relative paths:
    Code:

    650) this.width=650; "class=" Exp-image-default "alt=" How to set Apache Access Restrictions "src=" http://c.hiphotos.baidu.com/exp/w=500/ Sign=7244b24bbaa1cd1105b672208913c8b0/c995d143ad4bd113f968e1495aafa40f4bfb0527.jpg "style=" border:0px; "/>


  5. Disable certain IP access/allow only certain IP access
    If you want to control the prohibition of certain illegal IP access, control in the directory option:
    Code:

    650) this.width=650; "class=" Exp-image-default "alt=" How to set Apache Access Restrictions "src=" http://c.hiphotos.baidu.com/exp/w=500/ Sign=62cc9b528618367aad897fdd1e728b68/279759ee3d6d55fb6066205d6d224f4a20a4dd2d.jpg "style=" border:0px; "/>


  6. Allow only certain IP access, for example, to allow internal or cooperative company access:
    Code:

    650) this.width=650; "class=" Exp-image-default "alt=" How to set Apache Access Restrictions "src=" http://g.hiphotos.baidu.com/exp/w=500/ Sign=920e4d96a3cc7cd9fa2d34d909002104/8cb1cb1349540923e3f535059258d109b3de4928.jpg "style=" border:0px; "/>



This article is from "The Miracle Teenager" blog, please be sure to keep this source http://raffaelexr.blog.51cto.com/8555551/1746732

Apache Access Control

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.