errors - 403 forbidden access to my whole site

Yesterday I tried to add some lines of code to my functions.php and suddenly the whole site throw 403 forbidden error. B

Yesterday I tried to add some lines of code to my functions.php and suddenly the whole site throw 403 forbidden error. Both frontend/admin. Asked my hosting provider ( SiteGround ) and they said it is blocked because of security reasons as far as I understood. How can I check for malwares if I can't access my admin panel to install plugin for this. Also downloaded the files on my local server ( I am using LAMP stack on Ubuntu 18 ) and when I try to reach my local domain it redirects me to the site again with 403 forbidden error. What I tried to add as code is :

function test() {
   echo "TEST";
}
add_action("test", "test")

After that I have deleted it through FTP. Hope I explained the situtation clearly. If you need more info to give me some advice will provide it immediately. Thank you!

Yesterday I tried to add some lines of code to my functions.php and suddenly the whole site throw 403 forbidden error. Both frontend/admin. Asked my hosting provider ( SiteGround ) and they said it is blocked because of security reasons as far as I understood. How can I check for malwares if I can't access my admin panel to install plugin for this. Also downloaded the files on my local server ( I am using LAMP stack on Ubuntu 18 ) and when I try to reach my local domain it redirects me to the site again with 403 forbidden error. What I tried to add as code is :

function test() {
   echo "TEST";
}
add_action("test", "test")

After that I have deleted it through FTP. Hope I explained the situtation clearly. If you need more info to give me some advice will provide it immediately. Thank you!

Share Improve this question asked Sep 7, 2019 at 10:18 Toma TomovToma Tomov 1033 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

You need to look at all files via your hosting File Manager (or FTP). Look for any code that shouldn't be there.

See my answer to Coinhive Malware on WordPress websites , of things to check.

And here's the process I use to clean up hacked WP sites: https://securitydawg/recovering-from-a-hacked-wordpress-site/ . Basically: change credentials on everything; look at all file contents for hacked code; reinstall everything from known good/original source; reinstall latest WP; and more.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745177497a4615264.html

相关推荐

  • errors - 403 forbidden access to my whole site

    Yesterday I tried to add some lines of code to my functions.php and suddenly the whole site throw 403 forbidden error. B

    4小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信