plainblack.com
Username Password
search
Bookmark and Share
Subscribe

How to hide the /root/import asset tree

If it bothers you like it does me, the default installation of webgui allows non-logged in users to traverse the asset tree as if they were traversing an ftp site. But no worries, they do not have permissions to modify anything.

option 1

If you still want to hide this, change the folders so that they are only visible to admins or content managers, and also hide them from navigation. But the files themselves MUST remain visible to everyone.

Doing this will instead redirect users to a login screen.

Having it viewable, google may index it. To prevent that, you can simply write a robots.txt file.

With the combination of both methods, users will not be able to traverse the import node asset tree, and google will not index them and skew up your site rankings.

option 2

You can also modify the robots.txt file in webgui. It is located in the root/import folder. Below is an example of preventing robots from traversing the import directory:

User-agent: *
Disallow: *?op=auth
Disallow: *?op=account
Disallow: *?op=ajaxGetI18N
Disallow: *?op=makePrintable
Disallow: *?op=viewHelp
Disallow: *?op=viewHelpIndex
Disallow: /extras*
Disallow: /root/import*

Keywords: robots.txt

Search | Most Popular | Recent Changes | Wiki Home
© 2017 Plain Black Corporation | All Rights Reserved