You can move the wp-config file one level up.
You can also create a .htaccess file and upload it to your uploads folder with this code:
<Files ~ ".*..*">
Order Allow,Deny
Deny from all
</Files>
<FilesMatch ".(jpg|jpeg|jpe|gif|png)$">
Order Deny,Allow
Allow from all
</FilesMatch>
Or install a plugin for security which also scans your installation so you can more easily find the malicious code. http://wordpress.org/plugins/wordfence/
More security . http://codex.wordpress.org/Hardening_WordPress
Related Posts:
- Is moving wp-config outside the web root really beneficial?
- Verifying that I have fully removed a WordPress hack?
- If a hacker changed the blog_charset to UTF-7 does that make WordPress vulnerable to further attacks?
- Prevent access or auto-delete readme.html, license.txt, wp-config-sample.php
- Tips for finding SPAM links injected into the_content
- Generate WordPress salt
- Garbage in beginning of wp-config.php – was this WP installation compromised?
- What should I do about hacked server?
- How can I find security hole in my wordpress site?
- How to prevent bot or someone to modify any file automatically?
- wp-config.php modified?
- How does the “authentication unique keys and salts” feature work?
- Securing wp-config leads to sensitive information leak on wp-settings
- Is there any point setting the keys and salts in wp-config.php?
- Suspicious Files
- What’s the point of forbidding access to wp-config.php?
- Where to store OAuth 2.0 client id and secret?
- How to prevent wp-login brute force attack from thousand of different IP? [duplicate]
- Malware script in database post table only? [closed]
- Verifying that I have fully removed a WordPress hack?
- How can I safely hide the fact that my website runs on WordPress? [closed]
- My WordPress Websites are always under attack
- Config file with no Keys..?
- How to find exploited wordpress plugin [closed]
- White screen of death on admin pages after moving wp-config up two levels for security
- Storing FTP details in wp-config.php
- Any known bugs that could cause disappearance of the wp_users table?
- On new server, site got hacked, permissions a bit strange? Please help
- My Site keeps crashing due to the wp-confg file being deleted
- Moving wp-config.php outside root folder where we have multiple wordpress websites for enhanced security [duplicate]
- Replace domain in database
- How to change location of wp-config.php to folder or 2 folders up?
- Adding Security Keys?
- Secret keys in SCM
- Should I prevent access to .htaccess and wp-config.php files?
- WordPress Database Re-installed (Hacked)
- Verifying that I have fully removed a WordPress hack?
- wp-config.php moved above root results in no plugin updates
- wp-config.php file and code injection
- Malware/Permission bug removal?
- Could a user account with a stolen password compromised entire WP site?
- how to find the way they hacked my WP site
- How to stop repeated hack on header.php of custom theme? [closed]
- Default installation permissions for wp-config.php
- Is my WP site being hacked?
- Should WordPress Add Options to Enhance Security or Leave it to plugin developers? [closed]
- WordPress Hacks/Defacing [closed]
- Move data from wp-config to another file
- What’s the best approach for generating a new API key?
- Simplest two-way encryption using PHP
- How does the SQL injection from the “Bobby Tables” XKCD comic work?
- how fix “this certificate cannot be verified up to a trusted certification authority”
- How can bcrypt have built-in salts?
- Getting a List of Currently Available Roles on a WordPress Site?
- How safe / sanitized is wp_insert_posts()?
- From a security standpoint, should bloginfo() or get_bloginfo() be escaped?
- Why are passwords exportable as plain text in WordPress?
- Is there a way to force ssl on certain pages
- What is the purpose of having a token in cookies?
- How is password strength calculated?
- Regular security checks – what steps should be included?
- What are the pros and cons of using a custom front-end to retrieve content from a WordPress back-end
- Do Cookies Need to be Sanatized Before Being Saved?
- Disable external access to REST API Endpoint
- What is the wp-includes/certificates/ca-bundle.crt used for?
- Do you need to escape hard coded plain text?
- Encrypt emails?
- WordPress salts set in config and database
- Disallow file edit not preventing plugin install
- How to secure WordPress XMLRPC?
- Websites defaced by uploading script using theme editor
- What is the relationship between cURL, WordPress and cacert.pem?
- Does WP show me if I’m logged in from multiple locations?
- Has anyone experience w/ WordPress (MultiSite) hidden users (possibly hacked)?
- WordPress Malware Problem help! [duplicate]
- Restrictive File Permissions
- Why are xmlrpc.php and wp-cron.php being called so often?
- Using esc_html with HTML purifier and CSSTidy: Overkill?
- wordfence scan warning on W3 Total Cache [closed]
- How to save iframe tag into a post?
- Is wp_kses the right approach in sanitizing this string?
- Renaming install.php for security?
- WordPress Front end Form – Enable to Submit PHP Codes
- Is WordPress MultiSite secure & how much can it scale? [closed]
- Which Versions of WordPress Ship with the Patched TimThumb?
- Use global variables or function that returns said variables for site-wide private-ish WP settings?
- What can I do when an outside party hacks into my weblog and changes my display name?
- How safe is current_user_can()?
- Use Google authentication for pages within a website [closed]
- should I escape a literal url added in functions.php
- Spam in WordPress root folder
- Cannot access wp admin of WordPress website (security plugin issue) [closed]
- Why are the latest visits to my website originating from my own website?
- How do I hide WordPress users from security scanning?
- Background Updates Not Happening
- Able to go to WordPress admin even after deleting auth cookies from request headers
- FORCE_SSL_ADMIN affecting subdomains
- What is the best security $_POST method?
- My WP site and password was hacked, what to do? [closed]
- SSH keypair generation: RSA or DSA?