內容簡介
自從我們使用 WPEngine 以來,我們發現沒有辦法限制對 LIVE 網站的訪問權限。我們曾因用戶錯誤編輯 LIVE 網站而搞壞 HTML。這個外掛基本上為用戶添加一個復選框 (允許在 LIVE 上登錄),並比較 get_bloginfo(‘url’) 與外掛設置頁面上設置的 URL 是否相符。如果它們匹配,就表示是 LIVE 環境,並且將阻止沒有得到特別授權的用戶登錄到 LIVE 環境中。如果您自己登出 LIVE,則可以通過設置一個簡單的 cookie 繞過此檢查。這不是一個安全插件,只是為了避免愚蠢的錯誤。URL 元值在存儲之前進行 base64 編碼,以避免通常由 “One Click” 其他快速部署工具執行的搜索和替換。
任意部分
如果您有任何建議或問題,請告訴我們。
外掛標籤
開發者團隊
原文外掛簡介
Since we’ve been using WPEngine we found no way to limit access to the LIVE website. We had problems with users mistakenly editing the live website and messing up the HTML. This plugin basically adds a checkbox to the users (allow login on LIVE) and compare the get_bloginfo(‘url’) to the one setup on the plugin’s setting page. If it matches, it means it’s live environment and will prevent users who are not specifically authorized to login into the live environment. You can bypass this check (in case you log yourself out of live) by setting up a simple cookie. This is not a security plugin, this is just to avoid stupid mistakes. The URL meta value is base64 encoded before storage to avoid the Search and Replace generally done by the “One Click” live push.
Arbitrary section
Please let me know if you have any suggestions or questions.
