• Is there a method or plugin that can help us block bots from crawling certain PDFs in our Uploads directory? We are using the native Media manager because it’s easy for one our users. I understand we can block a specific directory and upload into that directory, but that makes it harder for this particular non-techy user. Any suggestions?

Viewing 1 replies (of 1 total)
  • try the following code in robots.txt file:

    
    User-agent: *
    Disallow: /wp-admin/
    Allow: /wp-admin/admin-ajax.php
    Disallow: /wp-content/uploads/
    

    *Some bots may not obey robots.txt rules…

    You may also want to disallow directory browsing for upload folder.
    1. create and edit a .htaccess file in /wp-content/uploads/ with the following line of code:

    	
    Options -Indexes
    
Viewing 1 replies (of 1 total)

The topic ‘Block bots in Uploads’ is closed to new replies.