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; "/>
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; "/>
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; "/>
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; "/>
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; "/>
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