WordPress 2.5的wp-config.php中增加了一个常量SECRET_KEY,它使你的cookie能更好地抵御SQL注入或其他攻击。
如果你的wp-config.php是WordPress2.5版的,它应该有下列一段:
- // Change SECRET_KEY to a unique phrase. You won’t have to remember it later,
- // so make it long and complicated. You can visithttps://www.grc.com/passwords.htm
- // to get a phrase generated for you, or just make something up.
- define('SECRET_KEY', '唯一字符串'); // Change this to a unique phrase
你需要做的只是把上面的“唯一字符串”改成你想要的字符串就行了。
如果你想我一样wp-config.php老旧不堪,你只需在其中加入下面一句,也就可以了(当然也要改那个字符串啦):
[更多查看原文]
挖友还挖到了什么 · · · · · ·