WordPress Security Hacks

Hi guys this is my first post on wpcult the great site Austin built.  Hope you guys find it usefull.
If you run a blog using the wordpress software then your blog is a target to hackers.  Below I will list some hacks and just how they can help you keep your business/site safe.
The following is  code to Block Bad Queries and protect your blog from malicious URL Requests.
Place the following code into a text file and name it what ever you like for example blockbadqueries.php upload it to your plugin folder and activate it in your wordpress admin just as you would any other Plugin
<?php
/*
Plugin Name: Block Bad Queries
Plugin URI: http://perishablepress.com/press/2009/12/22/protect-wordpress-against-malicious-url-requests/
Description: Protect WordPress Against Malicious URL Requests
Author URI: http://perishablepress.com/
Author: Perishable Press
Version: 1.0
*/
global $user_ID; if($user_ID) {
  if(!current_user_can(‘level_10′)) {
    if (strlen($_SERVER['REQUEST_URI']) > 255 ||
      strpos($_SERVER['REQUEST_URI'], “eval(“) ||…

You Might Also Like...

  • WordPress plugin: Protect your blog from malicious URL Requests

    1752 readersDue to its popularity, WordPress is often the target of hackers. Today, let's see how we can build a plugin that will check for malicious URL requests (Long request strings, presence of either "eval” and "base64" php functions, etc.) and use it to protect our blog.Looking for WordPress hosting? Try WP Web Host. Prices starts

  • Protect your WordPress blog using .htaccess

    1807 readersThe .htaccess file have lots of possibilities. Today, let's see how we can protect our WordPress blog from scripts injection, and unwanted modification of _REQUEST and/or GLOBALS. Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!Protect your WordPress blog using .htaccess

  • Directory

    20 Steps to a Flexible and Secure WordPress Installation

    513 readersA comprehensive WordPress installation, albeit simple to produce, often requires multiple steps — many of which can easily be omitted accidentally. How many times have you forgotten to customize your permalink structure? How about adding in a sitemap plugin? What about changing your timezone? If you’ve installed WordPress more than once, chances are you’ve missed

  • WordPress Elite: 10 Awesome .htaccess Edits

    243 readersThere is one file that is barely understood by most WordPress users, and that is .htaccess. Most of us understand that it is what controls the pretty permalinks that most blogs take advantage of, but there are other amazing things that .htaccess can do, and if you dig deep enough, you can change how your

  • Automatically refuse spam comments on your WordPress blog

    1669 readersSpam is a nuisance, and you know it. Happilly, WordPress users have Akismet, which help a lot to fight spam. But what about protecting your blog even more? This recipe might help.Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!Automatically refuse spam comments on your

  • WordPress : 10+ life saving SQL queries

    1905 readersAlthough there's lots of things that you can do in WordPress, sometimes you may need a quick fix for a specific problem. In those cases, working directly on the database can be a real life-saver. In this article, I'm going to show you 10+ extremely useful SQL queries for WordPress.Like CatsWhoCode? If yes, don't hesitate

  • Excluding your plugin or theme from update checks

    1013 readersThere has been a vigorous discussion going on regarding what data WordPress installs send to WordPress.org when doing update checks. Because WordPress (the software) doesn’t know whether a theme or plugin is listed in the WordPress.org repositories, it has to check them all, and let the repository sort it out. Some have expressed concern that

  • How to automatically remove the Nofollow from your posts

    1542 readersBy default, WordPress automatically converts all links from the post content to nofollow. If you prefer your links to be dofollow, just read and use the following recipe.Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!How to automatically remove the Nofollow from your posts

  • :D

    Top 10 WordPress Hacks from October 2009

    541 readersI know most of your loves to discover WordPress hacks, and this is why I'm pretty sure that you'll definitely love this article. I have compiled the most useful and awesome WordPress hacks that were released past month. Enjoy!Have you checked out the highly recommended Digging into WordPress book by Chris Coyier and Jeff Starr?Top

  • WordPress Defender: 30 Ways to Secure Your Website

    1875 readersLooking for a good book on WordPress security? If so, we’ve got great news! John Hoff’s new security e-book WordPress Defender provides 30 practical ways to secure your website from the evil forces of spam, bad bots, and malicious hackers. The book is packed with practical, common-sense security techniques that virtually any WordPress user can