How to Steal WordPress Content & How to Protect It – WordPress Security

Updated: September 14, 2018
Filed Under:

 

I am dubbing this “Content Hacking” because its not about accessing your WordPress admin area, it's about accessing your paid content without paying for it.

The really sad part is that most content creators don't even know this is happening, but it is.

The reason it is happening so much is because it is SO EASY to do.

In this video I show you how to protect yourself. It mainly involves adding a custom function to your WordPress theme's functions.php file. The fix is so simple that anyone can do it, however if you don't feel comfortable doing it yourself, the folks at InfusionPage can do it for you.

Exclude Posts or Pages from Search Results

function SearchFilter($query) {
    if ($query->is_search) {
        $query->set('cat','0,1');
    }
    return $query;
}

add_filter('pre_get_posts','SearchFilter');

Disable WordPress Search

function fb_filter_query( $query, $error = true ) {

if ( is_search() ) {
$query->is_search = false;
$query->query_vars[s] = false;
$query->query[s] = false;

// to error
if ( $error == true )
$query->is_404 = true;
}
}

add_action( 'parse_query', 'fb_filter_query' );
add_filter( 'get_search_form', create_function( '$a', "return null;" ) );

Conclusion

Let me just clarify that I don't condone hacking in any way. This post is not meant to teach people how to steal anyones content, its intention is to show content creators how to protect the content they create.

How to Steal WordPress Content & How to Protect It – WordPress Security

Adam @ WPCrafter

My passion is making the best quality video tutorial online, for non-techies. When I am not behind the camera, I am usually helping out one of my YouTube subscribers.
how-to-make-website

How To Make A Website 2019

best-WordPress-webhost

Best WordPress Hosts 2019

website-hosting-discount

InMotion Hosting

50% Discount Offer

free-course-offer

Free Course Offer

WordPress Starter Course

4 thoughts on “How to Steal WordPress Content & How to Protect It – WordPress Security”

  1. Sarkari Naukri

    You are right. It seems that someone is stealing my content. Really helpful video. Thank you

Leave a Comment

Your email address will not be published. Required fields are marked *