I have a custom designed script for my website, and /admin/ shows up in google search. How can i make /admin/ not visible and knowable to others. At least on google or searchable?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What I do is return a
404 not foundunless the user is already logged in. Put the login url above /admin.That combined with robots.txt should take care of it.
However, using robots.txt will alert those with ill-intent (hackers, etc) that you have a url to be attacked. I never put admin dashboards in robots.txt – I simply deny they exist.