Thread: Got Hacked!
View Single Post
Old 04-19-2014, 08:09 AM  
armysmoke
Confirmed User
 
armysmoke's Avatar
 
Industry Role:
Join Date: Oct 2013
Posts: 2,605
Quote:
Originally Posted by sicone View Post
Along with other good advice in here. You may want to consider locking down access to certain files/directories with .htaccess files so that only specific IP's can get to them.

<FilesMatch wp-login.php>
Order deny,allow
Allow from your.ip.goes.here
Deny from all
</FilesMatch>

# protect wpconfig.php
<Files wp-config.php>
order allow,deny
deny from all
</Files>

# protect the htaccess file
#<files .htaccess>
#order allow,deny
#deny from all
#</files>

# disable directory browsing
Options All -Indexes


Edit: I see Achmed was just pointing this info out for you.
Thank you for showing hot to restrict access using the htaccess file!

Quote:
Originally Posted by BIGTYMER View Post
Amen. Let this be a wake up call. Backup, backup and do more backups.

Set a daily cronjob to email you a backup of your MySQL databases. Use something like WinSCP and Windows Task Manager to auto backup/sync your sites.
Cronjob is already setup to save to my hosting account. I guess I should have it sent to me instead.
armysmoke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote