开发者

How do we protect our Wordpress from hacker?

开发者 https://www.devze.com 2022-12-25 01:59 出处:网络
it\'s can be apply not only to wordpress. But to all 开发者_如何学Cblog platform that can be installed into a server and shared host. so, What do you do via PHP coding or pluggin or any method to secu

it's can be apply not only to wordpress. But to all 开发者_如何学Cblog platform that can be installed into a server and shared host. so, What do you do via PHP coding or pluggin or any method to secure your installation ?


Limit access to ftp. For this, upload to server file .ftpaccess, and paste following code:

<Limit ALL>
Deny from all
Allow from Your.IP.Address
</Limit>


Also, limit access to most important files (like wp-login.php), uploading in the same folder file .htaccess:

<Files "wp-login.php">
Order Deny,Allow
Deny from all
Allow from Your.IP.Address
</Files>


I suppose you could modify the .htaccess file to deny permission to /wp-admin* if the IP address doesn't match yours.


Being on a shared host is a bad limitation. This prevents you from installing a web application firewall like Mod_Security.

Here is a list of steps you can take to harden your Wordpress installation.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号