robot.txt for DirectAdmin

xuseronline

Verified User
Joined
Jul 10, 2019
Messages
26
As DirectAdmin is the control panel and it should be accessible to Admin/Reseller/End users only so for security reasons I would like these admin pages not to be crawled by the search engines. I want to do this so that my control panel is not searchable in search engines.

Any ideas how can I do this?
 
DirectAdmin pages can not be indexed by Search Engines, the might access only login page of course... if they can connect to 2222 port or you changed it to a default ports 80 and 443, i.e. using a webserver as a reverse proxy for DirectAdmin.

Anyway you might use all_pre.sh and deny known User Agents from search engines, something like:

PHP:
#!/usr/local/bin/php
<?php
# here comes your code 
# if.... 
# then 
# exit(1);
# else
# exit(0);
?>

and exit with non-zero code to deny access for unwanted user agents.
 
Back
Top