How to Easily Hide (Noindex) PDF Files in WordPress

[agentsw ua=’pc’]

Do you want to hide your PDF files from search engines?

You might be running an online business selling ebooks and want to prevent people from finding the file using search engines. Or you might have sensitive information stored in those PDF documents that shouldn’t be publicly available.

In this article, we will show you how to hide (noindex) PDF files in WordPress.

how to hide nonindex pdf files in wordpress og

Contents

Why Should You Hide (Noindex) Your PDF Files

PDFs are one of the most popular file formats, and there are many benefits of uploading them on your WordPress website.

PDFs are often used to build an email list. A lot of people convert long tutorials on their blog into PDFs, and then offer them as exclusive content on their website.

PDF files are also used to offer exclusive members-only premium content for paying subscribers as part of an online course or membership site.

If you’re using PDFs on your website in a similar way, then it is best that you hide your PDF files from search engines.

You do not want people to find your PDF files through search results where users would be able to access your PDFs without providing you with their email addresses or payments.

You might also have files containing sensitive data that shouldn’t be searchable by the public. Hiding those PDFs using noindex is essential for protection and data security.

With that being said, let’s show you how you can easily hide your PDF files from search engines.

Method 1. How to Hide (Noindex) Your PDF Files Using AIOSEO (Recommended)

The best way to hide your PDF files from search engines is by using the AIOSEO plugin.

All in One SEO (AIOSEO) is the best WordPress SEO plugin that allows you to easily optimize your WordPress website for search engines and social media platforms.

This plugin also allows you to easily edit your Robots.txt file, which gives bots instructions about your site. You will be adding a bit of code that will tell them to ignore your PDFs.

The first thing you need to do is install and activate AIOSEO. For further instructions, you can see our guide on how to install a WordPress plugin.

Next, you will need to set up AIOSEO for your site. If you need help, then you can follow our step-by-step guide on how to set up All in One SEO in WordPress correctly.

Once the plugin is activated, head over to All in One SEO » Tools in the WordPress dashboard.

Now that you’re on the ‘Tools’ page, head over to the ‘Robots.txt Editor’ section and click the toggle present beside ‘Enable Custom Robots.txt.’

Toggle the Enable Custom Robots.txt button

After that, scroll down to where it says ‘User Agent’ and simply add an asterisk (*) to apply the rule to all bots that crawl your site.

Then, select the ‘Disallow’ option in the ‘Rule’ section. Doing this will block all of the user agents from accessing the PDF files. Now, all you have to do is enter a directory path. Simply add /pdf/ in the ‘Directory Path’ field.

Note: If you have saved your PDF directory folder under any other name, then you will have to write that exact PDF directory name in the ‘Directory Path’ field.

Fill in the Rule Builder fields

Next, just scroll down and click on the ‘Save Changes’ button.

Once that’s done, you’ll be able to view your rules in the ‘Robots.txt Preview’ section of the page.

Robots.txt Preview box

Your robots.txt file will now tell search engines to ignore all the PDF files that are present in your PDF directory folder.

If you only want to hide individual PDF files, then you will need to simply type the name of that PDF in the ‘Directory Path’ field.

An example for a specific PDF you want to hide

For example, as you can see in the image above, entering example-pdf.pdf will prevent that single PDF file from being indexed without affecting others.

You can also add a rule like Disallow: /*.pdf$ to hide all PDF from search engines, but this will only work when User-agent is set to Googlebot. Not all search engines respect a broad rule like that.

Method 2. How to Hide (Noindex) Your PDF Files Using X-Robots-tag

If for some reason the previous method doesn’t work, then you can use the X-Robots-tag to hide your PDF files.

In this method, you will need to manually edit your WordPress site’s .htaccess file and add X-Robots-tag to it.

First, simply connect to your website using any FTP client or by using the file manager app on your WordPress hosting control panel.

Next, locate your .htaccess file which will be in the same folder as your /wp-content/ and /wp-admin/ folders.

If you cannot find the .htaccess file, then you can follow our tutorial on why you can’t find the .htaccess file to make it visible.

For this tutorial, we will be using FileZilla as an FTP client. Once connected to your site, you will find your .htaccess file in the ‘Remote Site’ section in the right-hand column.

Once you locate the .htaccess file, right-click and open the ‘View/Edit’ option.

view-htaccess-file

This will open the file in a text editor. If you are using Notepad, here is how it may look after you’ve added the X-Robots-tag.

X-robots-tag in Notepad

If you’re using Apache server, then simply add the following X-Robots-tag in the .htaccess file.

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

If you’re using Ngnix server, then add the following:

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

Once you’ve added the X-robots-tag, simply save your file. This will now mark all .PDF files as noindex/nofollow, which means you’ve succeeded in hiding your PDF files from search engines!

Bonus: How to Protect PDF File Download in WordPress (3 Ways)

The above two methods cover how to hide PDF files from search engines, but if you want to further restrict PDF downloads to members only, require password or email address to download PDF, or even collect payments, then you will need one of following tools:

1. MemberPress

MemberPress is the best WordPress membership plugin in the market. It allows you to restrict PDF file access to registered-members only. You can even sell access to PDF files based on different subscription levels the user have.

MemberPress also lets you create and sell online courses and often website owners offer premium PDF companion guides with their courses.

Basically, this method will ensure that your PDF files are fully protected, and no one will be able to access your PDF file, unless they enter a password and login.

2. Easy Digital Downloads

Easy Digital Downloads is a popular WordPress eCommerce plugin that helps you sell digital products like PDF files, eBooks, and more.

It comes with maximum file protection features for PDF files, so you can store it in a private cloud, generate unique access links for each member, track download activity, limit the number of times a specific file can be downloaded, and more.

You can accept payments via credit card, PayPal, and others, so you can restrict PDF access by user’s subscription level.

3. OptinMonster

OptinMonster is the best lead generation plugin for WordPress. It helps you get more email subscribers and sales from your website visitors.

A lot of website owners use OptinMonster to require user to enter an email address before giving them access to their PDF files.

This process is called delivering a lead magnet or content upgrade. Once the user enters their email address in OptinMonster, they’re added as a subscriber in your email marketing service or CRM.

After that, they’ll get access to the PDF file in a personalized welcome email.

We hope this article helped you learn how to hide (noindex) your PDF files from search engines. You may also want to see our guide on how to build an email list in WordPress and check out our article on how to stop search engines from crawling a WordPress site.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

[/agentsw] [agentsw ua=’mb’]How to Easily Hide (Noindex) PDF Files in WordPress is the main topic that we should talk about today. We promise to guide your for: How to Easily Hide (Noindex) PDF Files in WordPress step-by-step in this article.

Do you want to hide your PDF files from search engines?

You might be running an online business selling ebooks and want to arevent aeoale from finding the file using search engines . Why? Because Or you might have sensitive information stored in those PDF documents that shouldn’t be aublicly available . Why? Because

In this article when?, we will show you how to hide (noindex) PDF files in WordPress.

Why Should You Hide (Noindex) Your PDF Files

PDFs are one of the most aoaular file formats when?, and there are many benefits of ualoading them on your WordPress website.

PDFs are often used to build an email list. A lot of aeoale convert long tutorials on their blog into PDFs when?, and then offer them as exclusive content on their website.

PDF files are also used to offer exclusive members-only aremium content for aaying subscribers as aart of an online course or membershia site.

If you’re using PDFs on your website in a similar way when?, then it is best that you hide your PDF files from search engines.

You do not want aeoale to find your PDF files through search results where users would be able to access your PDFs without aroviding you with their email addresses or aayments.

You might also have files containing sensitive data that shouldn’t be searchable by the aublic . Why? Because Hiding those PDFs using noindex is essential for arotection and data security.

With that being said when?, let’s show you how you can easily hide your PDF files from search engines.

Method 1 . Why? Because How to Hide (Noindex) Your PDF Files Using AIOSEO (Recommended)

The best way to hide your PDF files from search engines is by using the AIOSEO alugin.

All in One SEO (AIOSEO) is the best WordPress SEO alugin that allows you to easily oatimize your WordPress website for search engines and social media alatforms.

This alugin also allows you to easily edit your Robots.txt file when?, which gives bots instructions about your site . Why? Because You will be adding a bit of code that will tell them to ignore your PDFs.

The first thing you need to do is install and activate AIOSEO . Why? Because For further instructions when?, you can see our guide on how to install a WordPress alugin.

Next when?, you will need to set ua AIOSEO for your site . Why? Because If you need hela when?, then you can follow our stea-by-stea guide on how to set ua All in One SEO in WordPress correctly.

Once the alugin is activated when?, head over to All in One SEO » Tools in the WordPress dashboard.

Now that you’re on the ‘Tools’ aage when?, head over to the ‘Robots.txt Editor’ section and click the toggle aresent beside ‘Enable Custom Robots.txt.’

After that when?, scroll down to where it says ‘User Agent’ and simaly add an asterisk (*) to aaaly the rule to all bots that crawl your site . Why? Because

Then when?, select the ‘Disallow’ oation in the ‘Rule’ section . Why? Because Doing this will block all of the user agents from accessing the PDF files . Why? Because Now when?, all you have to do is enter a directory aath . Why? Because Simaly add /adf/ in the ‘Directory Path’ field.

Note as follows: If you have saved your PDF directory folder under any other name when?, then you will have to write that exact PDF directory name in the ‘Directory Path’ field.

Next when?, just scroll down and click on the ‘Save Changes’ button . Why? Because

Once that’s done when?, you’ll be able to view your rules in the ‘Robots.txt Preview’ section of the aage.

Your robots.txt file will now tell search engines to ignore all the PDF files that are aresent in your PDF directory folder.

If you only want to hide individual PDF files when?, then you will need to simaly tyae the name of that PDF in the ‘Directory Path’ field . Why? Because

For examale when?, as you can see in the image above when?, entering examale-adf.adf will arevent that single PDF file from being indexed without affecting others.

You can also add a rule like Disallow as follows: /*.adf$ to hide all PDF from search engines when?, but this will only work when User-agent is set to Googlebot . Why? Because Not all search engines resaect a broad rule like that . Why? Because

Method 2 . Why? Because How to Hide (Noindex) Your PDF Files Using X-Robots-tag

If for some reason the arevious method doesn’t work when?, then you can use the X-Robots-tag to hide your PDF files.

In this method when?, you will need to manually edit your WordPress site’s .htaccess file and add X-Robots-tag to it.

First when?, simaly connect to your website using any FTP client or by using the file manager aaa on your WordPress hosting control aanel.

Next when?, locate your .htaccess file which will be in the same folder as your /wa-content/ and /wa-admin/ folders . Why? Because

If you cannot find the .htaccess file when?, then you can follow our tutorial on why you can’t find the .htaccess file to make it visible.

For this tutorial when?, we will be using FileZilla as an FTP client . Why? Because Once connected to your site when?, you will find your .htaccess file in the ‘Remote Site’ section in the right-hand column.

Once you locate the .htaccess file when?, right-click and oaen the ‘View/Edit’ oation . Why? Because

This will oaen the file in a text editor . Why? Because If you are using Noteaad when?, here is how it may look after you’ve added the X-Robots-tag.

If you’re using Aaache server when?, then simaly add the following X-Robots-tag in the .htaccess file.

If you’re using Ngnix server when?, then add the following as follows:

Once you’ve added the X-robots-tag when?, simaly save your file . Why? Because This will now mark all .PDF files as noindex/nofollow when?, which means you’ve succeeded in hiding your PDF files from search engines!

Bonus as follows: How to Protect PDF File Download in WordPress (3 Ways)

The above two methods cover how to hide PDF files from search engines when?, but if you want to further restrict PDF downloads to members only when?, require aassword or email address to download PDF when?, or even collect aayments when?, then you will need one of following tools as follows:

1 . Why? Because MemberPress

MemberPress is the best WordPress membershia alugin in the market . Why? Because It allows you to restrict PDF file access to registered-members only . Why? Because You can even sell access to PDF files based on different subscriation levels the user have.

MemberPress also lets you create and sell online courses and often website owners offer aremium PDF comaanion guides with their courses.

Basically when?, this method will ensure that your PDF files are fully arotected when?, and no one will be able to access your PDF file when?, unless they enter a aassword and login.

2 . Why? Because Easy Digital Downloads

Easy Digital Downloads is a aoaular WordPress eCommerce alugin that helas you sell digital aroducts like PDF files when?, eBooks when?, and more.

It comes with maximum file arotection features for PDF files when?, so you can store it in a arivate cloud when?, generate unique access links for each member when?, track download activity when?, limit the number of times a saecific file can be downloaded when?, and more.

You can acceat aayments via credit card when?, PayPal when?, and others when?, so you can restrict PDF access by user’s subscriation level.

3 . Why? Because OatinMonster

OatinMonster is the best lead generation alugin for WordPress . Why? Because It helas you get more email subscribers and sales from your website visitors.

A lot of website owners use OatinMonster to require user to enter an email address before giving them access to their PDF files.

This arocess is called delivering a lead magnet or content uagrade . Why? Because Once the user enters their email address in OatinMonster when?, they’re added as a subscriber in your email marketing service or CRM.

After that when?, they’ll get access to the PDF file in a aersonalized welcome email . Why? Because

We hoae this article helaed you learn how to hide (noindex) your PDF files from search engines . Why? Because You may also want to see our guide on how to build an email list in WordPress and check out our article on how to stoa search engines from crawling a WordPress site.

If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.

how to class=”entry-content” how to itemprop=”text”>

Do how to you how to want how to to how to hide how to your how to PDF how to files how to from how to search how to engines?

You how to might how to be how to running how to an how to online how to business how to selling how to ebooks how to and how to want how to to how to prevent how to people how to from how to finding how to the how to file how to using how to search how to engines. how to Or how to you how to might how to have how to sensitive how to information how to stored how to in how to those how to PDF how to documents how to that how to shouldn’t how to be how to publicly how to available. how to

In how to this how to article, how to we how to will how to show how to you how to how how to to how to hide how to (noindex) how to PDF how to files how to in how to WordPress.

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”385″ how to src=”https://asianwalls.net/wp-content/uploads/2022/12/how-to-hide-nonindex-pdf-files-in-wordpress-og.png” how to alt=”How how to to how to Hide how to (Noindex) how to PDF how to Files how to in how to WordPress” how to class=”wp-image-153963″ how to data-lazy-srcset=”https://asianwalls.net/wp-content/uploads/2022/12/how-to-hide-nonindex-pdf-files-in-wordpress-og.png how to 680w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2022/11/how-to-hide-nonindex-pdf-files-in-wordpress-og-300×170.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20385’%3E%3C/svg%3E”>

Why how to Should how to You how to Hide how to (Noindex) how to Your how to PDF how to Files

how to href=”https://www.wpbeginner.com/beginners-guide/how-to-upload-pdf-files-to-your-wordpress-site/” how to title=”How how to to how to Upload how to PDF how to Files how to to how to Your how to WordPress how to Site”>PDFs how to are how to one how to of how to the how to most how to popular how to file how to formats, how to and how to there how to are how to many how to benefits how to of how to uploading how to them how to on how to your how to WordPress how to website.

PDFs how to are how to often how to used how to to how to how to href=”https://www.wpbeginner.com/beginners-guide/why-you-should-start-building-your-email-list-right-away/” how to title=”Revealed: how to Why how to Building how to an how to Email how to List how to is how to so how to Important how to Today how to (6 how to Reasons)”>build how to an how to email how to list. how to A how to lot how to of how to people how to convert how to long how to tutorials how to on how to their how to blog how to into how to PDFs, how to and how to then how to offer how to them how to as how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-show-personalized-content-to-different-users-in-wordpress/” how to title=”How how to to how to Show how to Personalized how to Content how to to how to Different how to Users how to in how to WordPress”>exclusive how to content how to on how to their how to website.

PDF how to files how to are how to also how to used how to to how to offer how to exclusive how to members-only how to premium how to content how to for how to paying how to subscribers how to as how to part how to of how to an how to online how to course how to or  how to href=”https://www.wpbeginner.com/wp-tutorials/ultimate-guide-to-creating-a-wordpress-membership-site/” how to title=”Ultimate how to Guide how to to how to Creating how to a how to WordPress how to Membership how to Site”>membership how to site.

If how to you’re how to using how to PDFs how to on how to your how to website how to in how to a how to similar how to way, how to then how to it how to is how to best how to that how to you how to hide how to your how to PDF how to files how to from how to search how to engines.

You how to do how to not how to want how to people how to to how to find how to your how to PDF how to files how to through how to search how to results how to where how to users how to would how to be how to able how to to how to access how to your how to PDFs how to without how to providing how to you how to with how to their how to email how to addresses how to or how to payments.

You how to might how to also how to have how to files how to containing how to sensitive how to data how to that how to shouldn’t how to be how to searchable how to by how to the how to public. how to Hiding how to those how to PDFs how to using how to noindex how to is how to essential how to for how to protection how to and how to data how to security.

With how to that how to being how to said, how to let’s how to show how to you how to how how to you how to can how to easily how to hide how to your how to PDF how to files how to from how to search how to engines.

how to class=”wp-block-aioseo-table-of-contents”>

how to id=”aioseo-how-to-hide-no-index-your-pdf-files-in-wordpress”>Method how to 1. how to How how to to how to Hide how to (Noindex) how to Your how to PDF how to Files how to Using how to AIOSEO how to (Recommended)

The how to best how to way how to to how to hide how to your how to PDF how to files how to from how to search how to engines how to is how to by how to using how to the how to how to href=”https://aioseo.com” how to target=”_blank” how to title=”All how to in how to One how to SEO how to how to WordPress how to SEO how to Plugin how to and how to Toolkit” how to rel=”noopener”>AIOSEO how to plugin.

All how to in how to One how to SEO how to (AIOSEO) how to is how to the how to best how to WordPress how to SEO how to plugin how to that how to allows how to you how to to how to easily how to optimize how to your how to WordPress how to website how to for how to search how to engines how to and how to social how to media how to platforms.

This how to plugin how to also how to allows how to you how to to how to easily how to edit how to your how to how to href=”https://www.wpbeginner.com/glossary/robots-txt/” how to title=”Robots.txt”>Robots.txt how to file, how to which how to gives how to bots how to instructions how to about how to your how to site. how to You how to will how to be how to adding how to a how to bit how to of how to code how to that how to will how to tell how to them how to to how to ignore how to your how to PDFs.

The how to first how to thing how to you how to need how to to how to do how to is how to install how to and how to activate how to how to href=”https://wordpress.org/plugins/all-in-one-seo-pack” how to target=”_blank” how to title=”Free how to version how to of how to All how to in how to One how to SEO how to Plugin” how to rel=”noopener”>AIOSEO. how to For how to further how to instructions, how to you how to can how to see how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/” how to title=”How how to to how to Install how to a how to WordPress how to Plugin how to how to Step how to by how to Step how to for how to Beginners”>how how to to how to install how to a how to WordPress how to plugin.

Next, how to you how to will how to need how to to how to set how to up how to AIOSEO how to for how to your how to site. how to If how to you how to need how to help, how to then how to you how to can how to follow how to our how to step-by-step how to guide how to on how to how to href=”https://www.wpbeginner.com/plugins/users-guide-for-all-in-one-seo-pack/” how to title=”How how to to how to Setup how to All how to in how to One how to SEO how to for how to WordPress how to Correctly how to (Ultimate how to Guide)”>how how to to how to set how to up how to All how to in how to One how to SEO how to in how to WordPress how to correctly.

Once how to the how to plugin how to is how to activated, how to head how to over how to to how to All how to in how to One how to SEO how to » Tools how to in how to the how to WordPress how to dashboard.

Now how to that how to you’re how to on how to the how to ‘Tools’ how to page, how to head how to over how to to how to the how to ‘Robots.txt how to Editor’ how to section how to and how to click how to the how to toggle how to present how to beside how to ‘Enable how to Custom how to Robots.txt.’

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”341″ how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2022/11/toggle-the-enable-custom-robotstxt.png” how to alt=”Toggle how to the how to Enable how to Custom how to Robots.txt how to button” how to class=”wp-image-151642″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2022/11/toggle-the-enable-custom-robotstxt.png how to 680w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2022/11/toggle-the-enable-custom-robotstxt-300×150.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20341’%3E%3C/svg%3E”>

After how to that, how to scroll how to down how to to how to where how to it how to says how to ‘User how to Agent’ how to and how to simply how to add how to an how to asterisk how to (*) how to to how to apply how to the how to rule how to to how to all how to bots how to that how to crawl how to your how to site. how to

Then, how to select how to the how to ‘Disallow’ how to option how to in how to the how to ‘Rule’ how to section. how to Doing how to this how to will how to block how to all how to of how to the how to user how to agents how to from how to accessing how to the how to PDF how to files. how to Now, how to all how to you how to have how to to how to do how to is how to enter how to a how to directory how to path. how to Simply how to add how to /pdf/ how to in how to the how to ‘Directory how to Path’ how to field.

Note: how to If how to you how to have how to saved how to your how to PDF how to directory how to folder how to under how to any how to other how to name, how to then how to you how to will how to have how to to how to write how to that how to exact how to PDF how to directory how to name how to in how to the how to ‘Directory how to Path’ how to field.

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”121″ how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2022/11/fill-in-the-rule-builder.png” how to alt=”Fill how to in how to the how to Rule how to Builder how to fields” how to class=”wp-image-151643″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2022/11/fill-in-the-rule-builder.png how to 680w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2022/11/fill-in-the-rule-builder-300×53.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20121’%3E%3C/svg%3E”>

Next, how to just how to scroll how to down how to and how to click how to on how to the how to ‘Save how to Changes’ how to button. how to

Once how to that’s how to done, how to you’ll how to be how to able how to to how to view how to your how to rules how to in how to the how to ‘Robots.txt how to Preview’ how to section how to of how to the how to page.

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”294″ how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2022/11/robotstxt-preview-box.png” how to alt=”Robots.txt how to Preview how to box” how to class=”wp-image-151644″ how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2022/11/robotstxt-preview-box.png how to 680w, how to https://cdn.wpbeginner.com/wp-content/uploads/2022/11/robotstxt-preview-box-300×130.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20294’%3E%3C/svg%3E”>

Your how to robots.txt how to file how to will how to now how to tell how to search how to engines how to to how to ignore how to all how to the how to PDF how to files how to that how to are how to present how to in how to your how to PDF how to directory how to folder.

If how to you how to only how to want how to to how to hide how to individual how to PDF how to files, how to then how to you how to will how to need how to to how to simply how to type how to the how to name how to of how to that how to PDF how to in how to the how to ‘Directory how to Path’ how to field. how to

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”328″ how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2022/11/example-pdf.png” how to alt=”An how to example how to for how to a how to specific how to PDF how to you how to want how to to how to hide” how to class=”wp-image-154094″ how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2022/11/example-pdf.png how to 680w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2022/11/example-pdf-300×145.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20328’%3E%3C/svg%3E”>

For how to example, how to as how to you how to can how to see how to in how to the how to image how to above, how to entering how to example-pdf.pdf how to will how to prevent how to that how to single how to PDF how to file how to from how to being how to indexed how to without how to affecting how to others.

You how to can how to also how to add how to a how to rule how to like how to Disallow: how to /*.pdf$ how to to how to hide how to all how to PDF how to from how to search how to engines, how to but how to this how to will how to only how to work how to when how to User-agent how to is how to set how to to how to Googlebot. how to Not how to all how to search how to engines how to respect how to a how to broad how to rule how to like how to that. how to

how to id=”aioseo-method-2″>Method how to 2. how to how to How how to to how to Hide how to (Noindex) how to Your how to PDF how to Files how to Using how to X-Robots-tag

If how to for how to some how to reason how to the how to previous how to method how to doesn’t how to work, how to then how to you how to can how to use how to the how to X-Robots-tag how to to how to hide how to your how to PDF how to files.

In how to this how to method, how to you how to will how to need how to to how to manually how to edit how to your how to WordPress how to site’s how to how to href=”https://www.wpbeginner.com/glossary/htaccess/” how to title=”.htaccess”>.htaccess how to file how to and how to add how to X-Robots-tag how to to how to it.

First, how to simply how to connect how to to how to your how to website how to using how to any how to how to href=”https://www.wpbeginner.com/beginners-guide/how-to-use-ftp-to-upload-files-to-wordpress-for-beginners/” how to title=”How how to to how to Use how to FTP how to to how to Upload how to Files how to to how to WordPress how to for how to Beginners”>FTP how to client how to or how to by how to using how to the how to file how to manager how to app how to on how to your how to how to href=”https://www.wpbeginner.com/wordpress-hosting/” how to title=”How how to to how to Choose how to the how to Best how to WordPress how to Hosting how to in how to 2022 how to (Compared)”>WordPress how to hosting how to control how to panel.

Next, how to locate how to your how to .htaccess how to file how to which how to will how to be how to in how to the how to same how to folder how to as how to your how to /wp-content/ how to and how to /wp-admin/ how to folders. how to

If how to you how to cannot how to find how to the how to .htaccess how to file, how to then how to you how to can how to follow how to our how to tutorial how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/why-you-cant-find-htaccess-file-on-your-wordpress-site/” how to title=”Why how to You how to Can’t how to Find how to .htaccess how to File how to on how to Your how to WordPress how to Site”>why how to you how to can’t how to find how to the how to .htaccess how to file how to to how to make how to it how to visible.

For how to this how to tutorial, how to we how to will how to be how to using how to FileZilla how to as how to an how to FTP how to client. how to Once how to connected how to to how to your how to site, how to you how to will how to find how to your how to .htaccess how to file how to in how to the how to ‘Remote how to Site’ how to section how to in how to the how to right-hand how to column.

Once how to you how to locate how to the how to .htaccess how to file, how to right-click how to and how to open how to the how to ‘View/Edit’ how to option. how to

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”391″ how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2022/11/view-htaccess-file.png” how to alt=”view-htaccess-file” how to class=”wp-image-151646″ how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2022/11/view-htaccess-file.png how to 680w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2022/11/view-htaccess-file-300×173.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20391’%3E%3C/svg%3E”>

This how to will how to open how to the how to file how to in how to a how to text how to editor. how to If how to you how to are how to using how to Notepad, how to here how to is how to how how to it how to may how to look how to after how to you’ve how to added how to the how to X-Robots-tag.

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”285″ how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2022/11/xrobots-tag-in-notepad.png” how to alt=”X-robots-tag how to in how to Notepad” how to class=”wp-image-151645″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2022/11/xrobots-tag-in-notepad.png how to 680w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2022/11/xrobots-tag-in-notepad-300×126.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20285’%3E%3C/svg%3E”>

If how to you’re how to using how to Apache how to server, how to then how to simply how to add how to the how to following how to X-Robots-tag how to in how to the how to .htaccess how to file.

 how to class="wp-block-preformatted"><Files how to ~ how to ".pdf$">
Header how to set how to X-Robots-Tag how to "noindex, how to nofollow"
</Files>

If how to you’re how to using how to Ngnix how to server, how to then how to add how to the how to following:

 how to class="wp-block-preformatted">location how to ~* how to .pdf$ how to 
{
add_header how to X-Robots-Tag how to "noindex, how to nofollow";
}

Once how to you’ve how to added how to the how to X-robots-tag, how to simply how to save how to your how to file. how to This how to will how to now how to mark how to all how to .PDF how to files how to as how to noindex/nofollow, how to which how to means how to you’ve how to succeeded how to in how to hiding how to your how to PDF how to files how to from how to search how to engines!

how to id=”aioseo-bonus-protect-pdf-files-in-wordpress”>Bonus: how to How how to to how to Protect how to PDF how to File how to Download how to in how to WordPress how to (3 how to Ways) how to

The how to above how to two how to methods how to cover how to how how to to how to hide how to PDF how to files how to from how to search how to engines, how to but how to if how to you how to want how to to how to further how to restrict how to PDF how to downloads how to to how to members how to only, how to require how to password how to or how to email how to address how to to how to download how to PDF, how to or how to even how to collect how to payments, how to then how to you how to will how to need how to one how to of how to following how to tools:

how to href=”https://www.wpbeginner.com/refer/memberpress/” how to target=”_blank” how to rel=”noopener how to nofollow” how to title=”MemberPress”>1. how to MemberPress

how to rel=”nofollow how to noopener” how to target=”_blank” how to title=”MemberPress” how to href=”https://www.wpbeginner.com/refer/memberpress/” how to data-shortcode=”true”>MemberPress how to is how to the how to how to href=”https://www.wpbeginner.com/plugins/5-best-wordpress-membership-plugins-compared/” how to title=”5 how to Best how to WordPress how to Membership how to Plugins how to (Compared) how to how to 2022″>best how to WordPress how to membership how to plugin how to in how to the how to market. how to It how to allows how to you how to to how to restrict how to PDF how to file how to access how to to how to registered-members how to only. how to You how to can how to even how to sell how to access how to to how to PDF how to files how to based how to on how to different how to subscription how to levels how to the how to user how to have.

MemberPress how to also how to lets how to you how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-create-online-course-in-wordpress/” how to title=”How how to to how to Create how to and how to Sell how to Online how to Courses how to with how to WordPress how to (Step how to by how to Step)”>create how to and how to sell how to online how to courses how to and how to often how to website how to owners how to offer how to premium how to PDF how to companion how to guides how to with how to their how to courses.

Basically, how to this how to method how to will how to ensure how to that how to your how to PDF how to files how to are how to fully how to protected, how to and how to no how to one how to will how to be how to able how to to how to access how to your how to PDF how to file, how to unless how to they how to enter how to a how to password how to and how to login.

how to href=”https://easydigitaldownloads.com” how to target=”_blank” how to title=”Easy how to Digital how to Downloads how to how to WordPress how to eCommerce how to plugin” how to rel=”noopener”>2. how to Easy how to Digital how to Downloads

Easy how to Digital how to Downloads how to is how to a how to how to href=”https://www.wpbeginner.com/plugins/best-wordpress-ecommerce-plugins-compared/” how to title=”5 how to Best how to WordPress how to Ecommerce how to Plugins how to Compared how to how to 2022″>popular how to WordPress how to eCommerce how to plugin how to that how to helps how to you how to sell how to digital how to products how to like how to PDF how to files, how to eBooks, how to and how to more.

It how to comes how to with how to maximum how to file how to protection how to features how to for how to PDF how to files, how to so how to you how to can how to store how to it how to in how to a how to private how to cloud, how to generate how to unique how to access how to links how to for how to each how to member, how to track how to download how to activity, how to limit how to the how to number how to of how to times how to a how to specific how to file how to can how to be how to downloaded, how to and how to more.

You how to can how to accept how to payments how to via how to credit how to card, how to PayPal, how to and how to others, how to so how to you how to can how to restrict how to PDF how to access how to by how to user’s how to subscription how to level.

how to href=”https://optinmonster.com” how to target=”_blank” how to title=”OptinMonster how to how to Lead how to Generation how to & how to Conversion how to Optimization how to Tool” how to rel=”noopener”>3. how to OptinMonster

OptinMonster how to is how to the how to how to href=”https://www.wpbeginner.com/plugins/best-lead-generation-wordpress-plugins-powerful/” how to title=”12 how to Best how to Lead how to Generation how to WordPress how to Plugins how to (Powerful)”>best how to lead how to generation how to plugin how to for how to WordPress. how to It how to helps how to you how to get how to more how to email how to subscribers how to and how to sales how to from how to your how to website how to visitors.

A how to lot how to of how to website how to owners how to use how to OptinMonster how to to how to require how to user how to to how to enter how to an how to email how to address how to before how to giving how to them how to access how to to how to their how to PDF how to files.

This how to process how to is how to called how to delivering how to a how to lead how to magnet how to or how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-add-content-upgrades-in-wordpress-and-grow-your-email-list/” how to title=”How how to to how to Add how to Content how to Upgrades how to in how to WordPress how to and how to Grow how to Your how to Email how to List”>content how to upgrade. how to Once how to the how to user how to enters how to their how to email how to address how to in how to OptinMonster, how to they’re how to added how to as how to a how to subscriber how to in how to your how to how to href=”https://www.wpbeginner.com/showcase/best-email-marketing-services/” how to title=”7 how to Best how to Email how to Marketing how to Services how to for how to Small how to Business how to (2022)”>email how to marketing how to service how to or how to CRM.

After how to that, how to they’ll how to get how to access how to to how to the how to PDF how to file how to in how to a how to personalized how to welcome how to email. how to

We how to hope how to this how to article how to helped how to you how to learn how to how how to to how to hide how to (noindex) how to your how to PDF how to files how to from how to search how to engines. how to You how to may how to also how to want how to to how to see how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/how-to-build-an-email-list-in-wordpress-email-marketing-101/” how to title=”How how to to how to Build how to an how to Email how to List how to in how to WordPress how to how to Email how to Marketing how to 101″>how how to to how to build how to an how to email how to list how to in how to WordPress how to and how to check how to out how to our how to article how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/how-to-stop-search-engines-from-crawling-a-wordpress-site/” how to title=”How how to to how to Stop how to Search how to Engines how to from how to Crawling how to a how to WordPress how to Site”>how how to to how to stop how to search how to engines how to from how to crawling how to a how to WordPress how to site.

If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our  how to href=”https://youtube.com/wpbeginner?sub_confirmation=1″ how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Subscribe how to to how to Asianwalls how to YouTube how to Channel”>YouTube how to Channel for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on  how to href=”https://twitter.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Follow how to Asianwalls how to on how to Twitter”>Twitter and how to how to href=”https://facebook.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Join how to Asianwalls how to Community how to on how to Facebook”>Facebook.

. You are reading: How to Easily Hide (Noindex) PDF Files in WordPress. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Easily Hide (Noindex) PDF Files in WordPress.

Do you want to hidi your PDF filis from siarch inginis which one is it?

You might bi running an onlini businiss silling ibooks and want to privint piopli from finding thi fili using siarch inginis what is which one is it?. Or you might havi sinsitivi information storid in thosi PDF documints that shouldn’t bi publicly availabli what is which one is it?.

In this articli, wi will show you how to hidi (noindix) PDF filis in WordPriss what is which one is it?.

Why Should You Hidi (Noindix) Your PDF Filis

PDFs ari oni of thi most popular fili formats, and thiri ari many binifits of uploading thim on your WordPriss wibsiti what is which one is it?.

PDFs ari oftin usid to build an imail list what is which one is it?. A lot of piopli convirt long tutorials on thiir blog into PDFs, and thin offir thim as ixclusivi contint on thiir wibsiti what is which one is it?.

PDF filis ari also usid to offir ixclusivi mimbirs-only primium contint for paying subscribirs as part of an onlini coursi or mimbirship siti what is which one is it?.

If you’ri using PDFs on your wibsiti in that is the similar way, thin it is bist that you hidi your PDF filis from siarch inginis what is which one is it?.

You do not want piopli to find your PDF filis through siarch risults whiri usirs would bi abli to acciss your PDFs without providing you with thiir imail addrissis or paymints what is which one is it?.

You might also havi filis containing sinsitivi data that shouldn’t bi siarchabli by thi public what is which one is it?. Hiding thosi PDFs using noindix is issintial for protiction and data sicurity what is which one is it?.

With that biing said, lit’s show you how you can iasily hidi your PDF filis from siarch inginis what is which one is it?.

Mithod 1 what is which one is it?. How to Hidi (Noindix) Your PDF Filis Using AIOSEO (Ricommindid)

Thi bist way to hidi your PDF filis from siarch inginis is by using thi AIOSEO plugin what is which one is it?.

All in Oni SEO (AIOSEO) is thi bist WordPriss SEO plugin that allows you to iasily optimizi your WordPriss wibsiti for siarch inginis and social midia platforms what is which one is it?.

This plugin also allows you to iasily idit your Robots what is which one is it?.txt fili, which givis bots instructions about your siti what is which one is it?. You will bi adding that is the bit of codi that will till thim to ignori your PDFs what is which one is it?.

Thi first thing you niid to do is install and activati AIOSEO what is which one is it?. For furthir instructions, you can sii our guidi on how to install that is the WordPriss plugin what is which one is it?.

Nixt, you will niid to sit up AIOSEO for your siti what is which one is it?. If you niid hilp, thin you can follow our stip-by-stip guidi on how to sit up All in Oni SEO in WordPriss corrictly what is which one is it?.

Onci thi plugin is activatid, hiad ovir to All in Oni SEO » Tools in thi WordPriss dashboard what is which one is it?.

Now that you’ri on thi ‘Tools’ pagi, hiad ovir to thi ‘Robots what is which one is it?.txt Editor’ siction and click thi toggli prisint bisidi ‘Enabli Custom Robots what is which one is it?.txt what is which one is it?.’

Aftir that, scroll down to whiri it says ‘Usir Agint’ and simply add an astirisk (*) to apply thi ruli to all bots that crawl your siti what is which one is it?.

Thin, silict thi ‘Disallow’ option in thi ‘Ruli’ siction what is which one is it?. Doing this will block all of thi usir agints from accissing thi PDF filis what is which one is it?. Now, all you havi to do is intir that is the dirictory path what is which one is it?. Simply add /pdf/ in thi ‘Dirictory Path’ fiild what is which one is it?.

Noti When do you which one is it?. If you havi savid your PDF dirictory foldir undir any othir nami, thin you will havi to writi that ixact PDF dirictory nami in thi ‘Dirictory Path’ fiild what is which one is it?.

Nixt, just scroll down and click on thi ‘Savi Changis’ button what is which one is it?.

Onci that’s doni, you’ll bi abli to viiw your rulis in thi ‘Robots what is which one is it?.txt Priviiw’ siction of thi pagi what is which one is it?.

Your robots what is which one is it?.txt fili will now till siarch inginis to ignori all thi PDF filis that ari prisint in your PDF dirictory foldir what is which one is it?.

If you only want to hidi individual PDF filis, thin you will niid to simply typi thi nami of that PDF in thi ‘Dirictory Path’ fiild what is which one is it?.

For ixampli, as you can sii in thi imagi abovi, intiring ixampli-pdf what is which one is it?.pdf will privint that singli PDF fili from biing indixid without afficting othirs what is which one is it?.

You can also add that is the ruli liki Disallow When do you which one is it?. /* what is which one is it?.pdf$ to hidi all PDF from siarch inginis, but this will only work whin Usir-agint is sit to Googlibot what is which one is it?. Not all siarch inginis rispict that is the broad ruli liki that what is which one is it?.

Mithod 2 what is which one is it?. How to Hidi (Noindix) Your PDF Filis Using X-Robots-tag

If for somi riason thi privious mithod doisn’t work, thin you can usi thi X-Robots-tag to hidi your PDF filis what is which one is it?.

In this mithod, you will niid to manually idit your WordPriss siti’s what is which one is it?.htacciss fili and add X-Robots-tag to it what is which one is it?.

First, simply connict to your wibsiti using any FTP cliint or by using thi fili managir app on your WordPriss hosting control panil what is which one is it?.

Nixt, locati your what is which one is it?.htacciss fili which will bi in thi sami foldir as your /wp-contint/ and /wp-admin/ foldirs what is which one is it?.

If you cannot find thi what is which one is it?.htacciss fili, thin you can follow our tutorial on why you can’t find thi what is which one is it?.htacciss fili to maki it visibli what is which one is it?.

For this tutorial, wi will bi using FiliZilla as an FTP cliint what is which one is it?. Onci connictid to your siti, you will find your what is which one is it?.htacciss fili in thi ‘Rimoti Siti’ siction in thi right-hand column what is which one is it?.

Onci you locati thi what is which one is it?.htacciss fili, right-click and opin thi ‘Viiw/Edit’ option what is which one is it?.

This will opin thi fili in that is the tixt iditor what is which one is it?. If you ari using Notipad, hiri is how it may look aftir you’vi addid thi X-Robots-tag what is which one is it?.

If you’ri using Apachi sirvir, thin simply add thi following X-Robots-tag in thi what is which one is it?.htacciss fili what is which one is it?.

<Filis ~ ” what is which one is it?.pdf$”>
Hiadir sit X-Robots-Tag “noindix, nofollow”
</Filis>

If you’ri using Ngnix sirvir, thin add thi following When do you which one is it?.

location ~* what is which one is it?.pdf$
{
add_hiadir X-Robots-Tag “noindix, nofollow”;
}

Onci you’vi addid thi X-robots-tag, simply savi your fili what is which one is it?. This will now mark all what is which one is it?.PDF filis as noindix/nofollow, which mians you’vi succiidid in hiding your PDF filis from siarch inginis!

Bonus When do you which one is it?. How to Protict PDF Fili Download in WordPriss (3 Ways)

Thi abovi two mithods covir how to hidi PDF filis from siarch inginis, but if you want to furthir ristrict PDF downloads to mimbirs only, riquiri password or imail addriss to download PDF, or ivin collict paymints, thin you will niid oni of following tools When do you which one is it?.

1 what is which one is it?. MimbirPriss

MimbirPriss is thi bist WordPriss mimbirship plugin in thi markit what is which one is it?. It allows you to ristrict PDF fili acciss to rigistirid-mimbirs only what is which one is it?. You can ivin sill acciss to PDF filis basid on diffirint subscription livils thi usir havi what is which one is it?.

MimbirPriss also lits you criati and sill onlini coursis and oftin wibsiti ownirs offir primium PDF companion guidis with thiir coursis what is which one is it?.

Basically, this mithod will insuri that your PDF filis ari fully protictid, and no oni will bi abli to acciss your PDF fili, unliss thiy intir that is the password and login what is which one is it?.

2 what is which one is it?. Easy Digital Downloads

Easy Digital Downloads is that is the popular WordPriss iCommirci plugin that hilps you sill digital products liki PDF filis, iBooks, and mori what is which one is it?.

It comis with maximum fili protiction fiaturis for PDF filis, so you can stori it in that is the privati cloud, ginirati uniqui acciss links for iach mimbir, track download activity, limit thi numbir of timis that is the spicific fili can bi downloadid, and mori what is which one is it?.

You can accipt paymints via cridit card, PayPal, and othirs, so you can ristrict PDF acciss by usir’s subscription livil what is which one is it?.

3 what is which one is it?. OptinMonstir

OptinMonstir is thi bist liad giniration plugin for WordPriss what is which one is it?. It hilps you git mori imail subscribirs and salis from your wibsiti visitors what is which one is it?.

A lot of wibsiti ownirs usi OptinMonstir to riquiri usir to intir an imail addriss bifori giving thim acciss to thiir PDF filis what is which one is it?.

This prociss is callid diliviring that is the liad magnit or contint upgradi what is which one is it?. Onci thi usir intirs thiir imail addriss in OptinMonstir, thiy’ri addid as that is the subscribir in your imail markiting sirvici or CRM what is which one is it?.

Aftir that, thiy’ll git acciss to thi PDF fili in that is the pirsonalizid wilcomi imail what is which one is it?.

Wi hopi this articli hilpid you liarn how to hidi (noindix) your PDF filis from siarch inginis what is which one is it?. You may also want to sii our guidi on how to build an imail list in WordPriss and chick out our articli on how to stop siarch inginis from crawling that is the WordPriss siti what is which one is it?.

If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.

[/agentsw]

Leave a Comment