DELETE FROM wp_comments WHERE comment_approved = 0
Showing posts with label Wordpress. Show all posts
Showing posts with label Wordpress. Show all posts
Tuesday, 21 July 2015
Batch Delete Comments for wordpress
The can use phpMyAdmin to execute this SQL
Labels:
Wordpress
Tuesday, 24 June 2014
6 Ways to Secure your WordPress site from Malware
1. Update!
Most of the common hacks/injections happen because of outdated WP or plugin. WordPress has a very strong community and as soon as a vulnerability is detected, it gets plugged.
2. Delete the ‘admin’ account – Make it harder for the hackers!
WordPress lets you give administrator access to other user accounts. So, instead of using ‘admin’ username use some other unique username.
3. Check your file and folder permissions
File permissions set to 777 or 755.
4. Hide your wp-config.php
This is another file which is most vulnerable to attacks and by default will be located at your_host/wordpress/wp-config.php. You can move it to the root directory i.e your_host/wp-config.php because WordPress automatically checks the root directory for this file if it doesn’t find it at the default location.
5. Use trusted sources for themes and plugins
Beware of pirated themes and plugins, they usually contain malware or spam bots which at best will hamper your site performance.
6. Connect to your server securely
Use sFTP or SSH instead of FTP. Use SSL whenever possible. HTTPS is most preferred and secure way of transacting online.
Labels:
Wordpress
Monday, 23 June 2014
How to host the Primary Domain from a subfolder (.htaccess)
RewriteEngine on
# Change example.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?example.com$# Change 'subdirectory' to be the directory you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/subdirectory/
# Don't change the following two lines.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Change 'subdirectory' to be the directory you will use for your main domain.
RewriteRule ^(.*)$ /subdirectory/$1
# Change example.com to be your main domain again.
# Change 'subdirectory' to be the directory you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?example.com$
RewriteRule ^(/)?$ subdirectory/index.html [L]
Labels:
Wordpress
Thursday, 5 June 2014
Subscribe to:
Posts (Atom)