Monday, November 21, 2022
HomeWordPress DevelopmentSimply Disguise (Noindex) PDF Information in WordPress

Simply Disguise (Noindex) PDF Information in WordPress


Do you need to conceal your PDF recordsdata from engines like google?

You may be working an internet enterprise promoting ebooks and need to forestall individuals from discovering the file utilizing engines like google. Otherwise you may need delicate data saved in these PDF paperwork that shouldn’t be publicly out there.

On this article, we’ll present you conceal (noindex) PDF recordsdata in WordPress.

How to Hide (Noindex) PDF Files in WordPress

Why Ought to You Disguise (Noindex) Your PDF Information

PDFs are one of the crucial fashionable file codecs, and there are numerous advantages of importing them in your WordPress web site.

PDFs are sometimes used to construct an electronic mail checklist. Lots of people convert lengthy tutorials on their weblog into PDFs, after which provide them as unique content material on their web site.

PDF recordsdata are additionally used to supply unique members-only premium content material for paying subscribers as a part of an internet course or membership web site.

In the event you’re utilizing PDFs in your web site in an identical manner, then it’s best that you just conceal your PDF recordsdata from engines like google.

You do not need individuals to search out your PDF recordsdata by means of search outcomes the place customers would be capable to entry your PDFs with out offering you with their electronic mail addresses or funds.

You may additionally have recordsdata containing delicate information that shouldn’t be searchable by the general public. Hiding these PDFs utilizing noindex is important for cover and information safety.

With that being stated, let’s present you how one can simply conceal your PDF recordsdata from engines like google.

Methodology 1. Disguise (Noindex) Your PDF Information Utilizing AIOSEO (Beneficial)

One of the simplest ways to cover your PDF recordsdata from engines like google is by utilizing the AIOSEO plugin.

All in One search engine optimisation (AIOSEO) is the perfect WordPress search engine optimisation plugin that means that you can simply optimize your WordPress web site for engines like google and social media platforms.

This plugin additionally means that you can simply edit your Robots.txt file, which provides bots directions about your web site. You’ll be including a little bit of code that can inform them to disregard your PDFs.

The very first thing it’s essential to do is set up and activate AIOSEO. For additional directions, you possibly can see our information on set up a WordPress plugin.

Subsequent, you’ll need to arrange AIOSEO to your web site. In the event you need assistance, then you possibly can observe our step-by-step information on arrange All in One search engine optimisation in WordPress accurately.

As soon as the plugin is activated, head over to All in One search engine optimisation » Instruments within the WordPress dashboard.

Now that you just’re on the ‘Instruments’ web page, head over to the ‘Robots.txt Editor’ part and click on the toggle current beside ‘Allow Customized Robots.txt.’

Toggle the Enable Custom Robots.txt button

After that, scroll right down to the place it says ‘Consumer Agent’ and easily add an asterisk (*) to use the rule to all bots that crawl your web site.

Then, choose the ‘Disallow’ choice within the ‘Rule’ part. Doing this can block all the person brokers from accessing the PDF recordsdata. Now, all it’s a must to do is enter a listing path. Merely add /pdf/ within the ‘Listing Path’ area.

Notice: When you’ve got saved your PDF listing folder below another title, then you’ll have to write that precise PDF listing title within the ‘Listing Path’ area.

Fill in the Rule Builder fields

Subsequent, simply scroll down and click on on the ‘Save Modifications’ button.

As soon as that’s completed, you’ll be capable to view your guidelines within the ‘Robots.txt Preview’ part of the web page.

Robots.txt Preview box

Your robots.txt file will now inform engines like google to disregard all of the PDF recordsdata which can be current in your PDF listing folder.

In the event you solely need to conceal particular person PDF recordsdata, then you’ll need to easily sort the title of that PDF within the ‘Listing Path’ area.

An example for a specific PDF you want to hide

For instance, as you possibly can see within the picture above, getting into example-pdf.pdf will forestall that single PDF file from being listed with out affecting others.

You may also add a rule like Disallow: /*.pdf$ to cover all PDF from engines like google, however this can solely work when Consumer-agent is about to Googlebot. Not all engines like google respect a broad rule like that.

Methodology 2. Disguise (Noindex) Your PDF Information Utilizing X-Robots-tag

If for some purpose the earlier methodology doesn’t work, then you should utilize the X-Robots-tag to cover your PDF recordsdata.

On this methodology, you’ll need to manually edit your WordPress web site’s .htaccess file and add X-Robots-tag to it.

First, merely connect with your web site utilizing any FTP shopper or by utilizing the file supervisor app in your WordPress internet hosting management panel.

Subsequent, find your .htaccess file which shall be in the identical folder as your /wp-content/ and /wp-admin/ folders.

In the event you can not discover the .htaccess file, then you possibly can observe our tutorial on why you possibly can’t discover the .htaccess file to make it seen.

For this tutorial, we shall be utilizing FileZilla as an FTP shopper. As soon as related to your web site, one can find your .htaccess file within the ‘Distant Website’ part within the right-hand column.

When you find the .htaccess file, right-click and open the ‘View/Edit’ choice.

view-htaccess-file

It will open the file in a textual content editor. In case you are utilizing Notepad, right here is the way it might take care of you’ve added the X-Robots-tag.

X-robots-tag in Notepad

In the event you’re utilizing Apache server, then merely add the next X-Robots-tag within the .htaccess file.

<Information ~ ".pdf$">
Header set X-Robots-Tag "noindex, nofollow"
</Information>

In the event you’re utilizing Ngnix server, then add the next:

location ~* .pdf$ 
{
add_header X-Robots-Tag "noindex, nofollow";
}

When you’ve added the X-robots-tag, merely save your file. It will now mark all .PDF recordsdata as noindex/nofollow, which implies you’ve succeeded in hiding your PDF recordsdata from engines like google!

Bonus: Shield PDF File Obtain in WordPress (3 Methods)

The above two strategies cowl conceal PDF recordsdata from engines like google, however if you wish to additional prohibit PDF downloads to members solely, require password or electronic mail handle to obtain PDF, and even gather funds, then you’ll need one in every of following instruments:

1. MemberPress

MemberPress is the greatest WordPress membership plugin out there. It means that you can prohibit PDF file entry to registered-members solely. You’ll be able to even promote entry to PDF recordsdata based mostly on completely different subscription ranges the person have.

MemberPress additionally enables you to create and promote on-line programs and sometimes web site house owners provide premium PDF companion guides with their programs.

Mainly, this methodology will make sure that your PDF recordsdata are totally protected, and nobody will be capable to entry your PDF file, except they enter a password and login.

2. Simple Digital Downloads

Simple Digital Downloads is a fashionable WordPress eCommerce plugin that helps you promote digital merchandise like PDF recordsdata, eBooks, and extra.

It comes with most file safety options for PDF recordsdata, so you possibly can retailer it in a personal cloud, generate distinctive entry hyperlinks for every member, observe obtain exercise, restrict the variety of occasions a particular file may be downloaded, and extra.

You’ll be able to settle for funds through bank card, PayPal, and others, so you possibly can prohibit PDF entry by person’s subscription stage.

3. OptinMonster

OptinMonster is the greatest lead technology plugin for WordPress. It helps you get extra electronic mail subscribers and gross sales out of your web site guests.

A number of web site house owners use OptinMonster to require person to enter an electronic mail handle earlier than giving them entry to their PDF recordsdata.

This course of known as delivering a lead magnet or content material improve. As soon as the person enters their electronic mail handle in OptinMonster, they’re added as a subscriber in your electronic mail advertising service or CRM.

After that, they’ll get entry to the PDF file in a customized welcome electronic mail.

We hope this text helped you learn to conceal (noindex) your PDF recordsdata from engines like google. You may additionally need to see our information on construct an electronic mail checklist in WordPress and take a look at our article on cease engines like google from crawling a WordPress web site.

In the event you appreciated this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You may also discover us on Twitter and Fb.



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments