Your site has likely been hacked. My site had the Darkleech infection, which injected some malicious code into wp-includes/nav-menu.php
, causing .htaccess to reset to 444 on any page load.
I’d recommend you install the Sucuri plugin and let it restore any files that have been corrupted. Assuming your site was hacked, use their Post-Hack tab to reset plugins, passwords, and keys. Also check to make sure another admin user wasn’t created. Use their Hardening tab to secure as much as you can. You could also install Wordfence for more security.
If you make adjustments and the problem keeps coming back, you likely have a root-level breach on your server, and then you have to work with your hosting provider to try to clean out the infection.
Related Posts:
- Standard permissions for wordpress; Plugin installation asks for FTP credentials
- 403 Forbidden – You don’t have permission to access /wp-admin/admin-ajax.php on this server
- Error Message from W3 Total Cache when .htaccess Rules Cannot Be Modified? [closed]
- Prevent WordPress installing plugins and themes via Admin
- Linux Permissions and Ownership for WordPress
- WordPress FTP/media directory permissions problem?
- to perform the requested action wordpress needs to access your web server. please enter your ftp
- What security concerns should I have when setting FS_METHOD to “direct” in wp-config?
- How can I stop WordPress from prompting me to enter FTP information when doing updates?
- wordpress on localhost lamp doesn’t let me install plugins
- Prompted for FTP details even with FS_DIRECT set to true
- How to prevent a post from being deleted?
- Is there a way (plugin?) to restrict a user to being able to edit just one page?
- Security and .htaccess
- Can’t install new plugins because of the error “Could not create directory”
- Cannot install plugins even though www-data has write permissions
- Why does WordPress still not support SFTP?
- Why does WordPress require a ftp server to be running on the webserver to transfer plugins?
- What does a security risk in a plugin look like?
- WP Config for FTP credentials
- How does WordPress update plugins, without running into permissions issues?
- Plugins won’t auto-update on IIS
- Add .html extension to custom post type taxonomies
- Leverage browser caching not working after updating .htaccess
- Can I ignore caching of a plugin in W3 Total Cache? [closed]
- Is it possible to block subscriber users to changing its password?
- Why would WordPress request FTP information when it can write to the file server?
- Upgrading WordPress 4.0 asks for FTP password
- How to install WordPress Multisite with different domains under the same subdirectory?
- WordPress roles – Protect administrator role
- htaccess and wordpress config files are regularly over written
- Could not create directory
- Creating Custom Roles for use on a WordPress Multi-site Instance?
- How to import 55k images (uploaded via FTP) into WordPress Media libary? [closed]
- Moving WordPress from host without FTP?
- Why does deactivating a plugin cause error: “You do not have sufficient permissions to access this page”?
- Can’t use the built-in wordpress install/upgrade plugin feature [closed]
- Plugin/Folder permission issues with Azure
- Can I upgrade plugins via FTP?
- WordPress redirect all 404 pages to the Homepage
- Plugin Expires Headers – W3 Total Cache [closed]
- Correct wp-content ownership and permissions
- How can I serve a text file at a custom URL
- Advanced Custom Fields/User Role Editor – how to hide ACF for certain users?
- How create a role with admin capability less 1 or 2?
- 500 Internal Server Error when updating htaccess
- W3 Total Cache: Load CSS asynchronously for better PageSpeed score? [closed]
- Write to / remove from default .htaccess file from plugin?
- Are these wp-content permissions safe?
- Restored WordPress on new Server – Can’t auto-update plugins
- Changed permalink structure. Need help with redirecting old posts
- Landing Page Redirect Chain | http->https->https www
- Possible htaccess configuration issue for HTTPS websites by WP Fastest Cache plugin? [closed]
- With W3 Total Cache when I publish a post it does not appear in the homepage. Only if i purge all cache [closed]
- W3 Total cache “empty all caches” and no stylesheets render [closed]
- Getting WPTouch and W3 Total Cache to Work Together [closed]
- Headers Content-Security-Policy CSP Major Issue
- Plugin updates change folder permissions
- Install (enable) plugins on multisite, on localhost
- Create a multisite network for an existing installation
- admin-ajax.php warning max input vars exceeded on layered pop plugins [closed]
- Is it wise to add plugins to the Object Cache?
- Reoccurring 404 Errors on all subpages
- transfer a file from one domain to another via wp
- Problem with updating a plugin
- Updating plugins asks for FTP information, why? (this is a new one)
- Is there a directory my plugin can write files to that cannot be viewed via the browser/url?
- Lock access to plugin options
- Is W3 Total Cache supposed to delete the local files after they are uploaded to CDN? [closed]
- plugin links not working [closed]
- Can’t Install Standard Plugins on a Local MAMP installation
- w3 Total Cache not Caching – Requested URI is rejected [closed]
- Install and Update plugins on a VPS WordPress installation
- Add menu page issues (permissions & position)
- Redirect to another page using contact form 7? [closed]
- Remove .htaccess portion upon plugin deactivation?
- Advanced Custom Fields – Disable Users to Edit Custom Fields
- Is there any way to make myself an admin?
- Why is the ‘Gutenberg’ Plugin generating an ‘Inconsistent File Permissions’ error when other Plugins, with the same permissions, do not?
- Edit Permalink Structure For Custom Post Type or Modify .htaccess?
- Custom url rewriting
- What are the correct permissions so WP doesn’t ask for FTP credentials if installing plugin?
- “W3 Total Cache” with “What Would Seth Godin Do” (and widgets?!)? [closed]
- How to add support for caching plugins for my own plugin?
- disabling ftp on wordpress
- WordPress won’t allow for updates to plugins or WordPress Core
- To perform the requested action, WordPress needs to access your web > server
- WordPress permissions error with admin account
- Why is my WordPress Plugin page requesting my FTP Login Credentials?
- WordPress unable to write files in the server
- Plugins successfully uploaded via FTP but they are not on my site
- Object Caching Plugin force every plugin to cache objects?
- Plugins & backup not working correctly on new Digital Ocean server
- WordPress rewrite rules not working
- Do rewrites added with add_rewrite_rule() persist after plugin deletion?
- Sociable buttons displaying seemingly at random [closed]
- How to hide plugin options for editors via functions.php
- How to write to the plugin’s directory?
- W3 Total Cache Help – How to update DNS Zone for a static domain [closed]
- What archive plugin works with W3 total cache? [closed]