亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

拒絕所有,只允許一個IP通過htaccess

拒絕所有,只允許一個IP通過htaccess

拒絕所有,只允許一個IP通過htaccess我試圖拒絕所有,只允許一個IP。但是,我想讓以下htaccess為該單個IP工作。我找不到兼顧兩者的方法:拒絕所有并且只允許一個,加上以下選項:<IfModule mod_rewrite.c>     RewriteEngine On     RewriteBase /     #Removes access to the system folder by users.     #Additionally this will allow you to create a System.php controller,     #previously this would not have been possible.     #'system' can be replaced if you have renamed your system folder.     RewriteCond %{REQUEST_URI} ^system.*     RewriteRule ^(.*)$ /index.php?/$1 [L]     #When your application folder isn't in the system folder     #This snippet prevents user access to the application folder     #Submitted by: Fabdrol     #Rename 'application' to your applications folder name.     RewriteCond %{REQUEST_URI} ^application.*     RewriteRule ^(.*)$ /index.php?/$1 [L]     #Checks to see if the user is attempting to access a valid file,     #such as an image or css document, if this isn't true it sends the     #request to index.php     RewriteCond %{REQUEST_FILENAME} !-f     RewriteCond %{REQUEST_FILENAME} !-d     RewriteRule ^(.*)$ index.php?/$1 [L]</IfModule><IfModule !mod_rewrite.c>     # If we don't have mod_rewrite installed, all 404's     # can be sent to index.php, and everything works as normal.     # Submitted by: ElliotHaughin     ErrorDocument 404 /index.php</IfModule>有沒有辦法讓這項工作?
查看完整描述

3 回答

?
楊魅力

TA貢獻1811條經驗 獲得超6個贊

order deny,allowdeny from allallow from <your ip>


查看完整回答
反對 回復 2019-07-26
  • 3 回答
  • 0 關注
  • 902 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號