久久精品水蜜桃av综合天堂,久久精品丝袜高跟鞋,精品国产肉丝袜久久,国产一区二区三区色噜噜,黑人video粗暴亚裔
站長(zhǎng)百科 | 數(shù)字化技能提升教程 數(shù)字化時(shí)代生存寶典
首頁
數(shù)字化百科
電子書
建站程序
開發(fā)
服務(wù)器
辦公軟件
開發(fā)教程
服務(wù)器教程
軟件使用教程
運(yùn)營(yíng)教程
熱門電子書
WordPress教程
寶塔面板教程
CSS教程
Shopify教程
導(dǎo)航
程序頻道
推廣頻道
網(wǎng)賺頻道
人物頻道
網(wǎng)站程序
網(wǎng)頁制作
云計(jì)算
服務(wù)器
CMS
論壇
網(wǎng)店
虛擬主機(jī)
cPanel
網(wǎng)址導(dǎo)航
WIKI使用導(dǎo)航
WIKI首頁
最新資訊
網(wǎng)站程序
站長(zhǎng)人物
頁面分類
使用幫助
編輯測(cè)試
創(chuàng)建條目
網(wǎng)站地圖
站長(zhǎng)百科導(dǎo)航
站長(zhǎng)百科
主機(jī)偵探
IDCtalk云說
跨境電商導(dǎo)航
WordPress啦
站長(zhǎng)專題
網(wǎng)站推廣
網(wǎng)站程序
網(wǎng)站賺錢
虛擬主機(jī)
cPanel
網(wǎng)址導(dǎo)航專題
云計(jì)算
微博營(yíng)銷
虛擬主機(jī)管理系統(tǒng)
開放平臺(tái)
WIKI程序與應(yīng)用
美國(guó)十大主機(jī)
編輯“
WordPress:Htaccess for subdirectories
”(章節(jié))
人物百科
|
營(yíng)銷百科
|
網(wǎng)賺百科
|
站長(zhǎng)工具
|
網(wǎng)站程序
|
域名主機(jī)
|
互聯(lián)網(wǎng)公司
|
分類索引
跳轉(zhuǎn)至:
導(dǎo)航
、?
搜索
警告:
您沒有登錄。如果您做出任意編輯,您的IP地址將會(huì)公開可見。如果您
登錄
或
創(chuàng)建
一個(gè)賬戶,您的編輯將歸屬于您的用戶名,且將享受其他好處。
反垃圾檢查。
不要
加入這個(gè)!
== 使用.htaccess保護(hù)單個(gè)的目錄== One possible solution for this problem is provided by .htaccess. You can add a .htaccess file to any directory that requires lenient permissions settings (such as 760, 766, 775 or 777). You can prevent the execution of scripts inside the directory and all its sub-directories. You can also prevent any files other than those of a certain type to be written to it. .htaccess提供了一種解決問題的方法。你可以向任何需要較寬松的權(quán)限設(shè)置(如760,766,775或者777)的目錄,添加.htaccess文件。你可以阻止目錄和所有的子目錄中的,腳本的運(yùn)行。你也可以禁止除了某個(gè)類型之外的其它文件的寫權(quán)限。 The following snippet of code prevents any files other than .jpeg, .jpg, .png. or .gif to be uploaded to the directory: 下面是一小片代碼,阻止除了.jpeg, .jpg, .png. 或者 .gif的任何文件,上傳到目錄上: <pre> <Files ^(*.jpeg|*.jpg|*.png|*.gif)> order deny,allow deny from all </Files> </pre> <pre> <Files ^(*.jpeg|*.jpg|*.png|*.gif)> order deny,allow deny from all </Files> </pre> The following code will prevent .pl, .cgi or .php scripts from being executed; instead, they will display as plain text inside the browser window: 下面的代碼阻止運(yùn)行.pl, .cgi 或者 .php 腳本;這些腳本會(huì)在瀏覽器窗口中顯示為純文本: <pre> AddType text/plain .pl AddType text/plain .cgi AddType text/plain .php </pre> <pre> AddType text/plain .pl AddType text/plain .cgi AddType text/plain .php </pre> Here's another way to display scripts as plain text instead of executing them: 下面還有一種方式,可以較腳本顯示為純文本,不用運(yùn)行這些腳本: <pre> RemoveHandler cgi-script .pl .py .cgi </pre> <pre> RemoveHandler cgi-script .pl .py .cgi </pre> The following code categorizes all files that end in certain extensions so that they fall under the jurisdiction of the -ExecCGI command (removes the ability to execute scripts), which also means -FollowSymLinks. 下面的代碼,為帶有某個(gè)擴(kuò)展名的所有文件分類,這樣這些文件就歸屬-ExecCGI命令的權(quán)限(就不能夠運(yùn)行腳本),也意味著-FollowSymLinks。 <pre style="font-size: 0.92em;"> AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi Options -ExecCGI </pre> <pre style="font-size: 0.92em;"> AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi Options -ExecCGI </pre> ''Please note:'' From a security standpoint, even a small amount of protection is preferable to a world-writeable directory. Try less permissive settings like 766, then 775 and only use 777 if necessary. Make sure that the .htaccess file itself has a chmod of 644. ''請(qǐng)注意:''從安全的角度來看,即使是少量的包含,對(duì)于world-writeable目錄,也是可取的。試試較低的權(quán)限設(shè)置,如766,755,如果必要的話,就使用777。確定.htaccess文件自身的權(quán)限是644。
摘要:
請(qǐng)注意,您對(duì)站長(zhǎng)百科的所有貢獻(xiàn)都可能被其他貢獻(xiàn)者編輯,修改或刪除。如果您不希望您的文字被任意修改和再散布,請(qǐng)不要提交。
您同時(shí)也要向我們保證您所提交的內(nèi)容是您自己所作,或得自一個(gè)不受版權(quán)保護(hù)或相似自由的來源(參閱
Wordpress-mediawiki:版權(quán)
的細(xì)節(jié))。
未經(jīng)許可,請(qǐng)勿提交受版權(quán)保護(hù)的作品!
取消
編輯幫助
(在新窗口中打開)
取自“
http://www.kktzf.com.cn/wiki/WordPress:Htaccess_for_subdirectories
”