php - How to allow wordpress website browsing but no file write or create -


i know how can setup website in way can browse website deny creation or editing of file except ftp access.

i have wordpress website gets hacked on , over. know have find exact vulnerability, quick temporary fix, deny website create new php pages or modify existing ones still allow update done ftp.

for folder 755 , files 644 , can find, files/folder owned account user. on dedicated hosting using whm/cpanel.

from i've read, doable using file ownership, hardly know group or user ownership put on files , folders achieve this.

all malicious files loaded directly file upload script. can't deny wordpress uploading files. wordpress doesn't know ftp. via ftp permissions change file's permissions (not whole website upload rules).


you have secure wordpress. process isn't hardly. steps:

  • check if have last wordpress version (update wordpress themes/plugins/wordpress core).
  • there plugins hide using wordpress. search on google "hide wordpress plugin" or this.
  • temporarily can change rules of .htaccess file, allow accessing admin panel ip. copy/paste code @ bottom of .htaccess file:

    rewriteengine on rewritecond %{request_uri} ^(.)?wp-login.php(.)$ [or] rewritecond %{request_uri} ^(.)?wp-admin$ rewritecond %{remote_addr} !^xxxipxxx$ rewriterule ^(.)$ - [r=403,l]

and replace xxxipxxx ip address. full article can find here http://premium.wpmudev.org/blog/limit-access-login-page/ .


i hope answer you.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -