Home > Concept & ideas, How & Why > How to get the path of wordpress installation directory

How to get the path of wordpress installation directory

August 1st, 2010 691 views Leave a comment Go to comments

I seen many people asking site owners about their CMS platform.
It is easier to know it yourself. There is a fixed path pattern of every CMS. If a site is using wordpress CMS then path pattern should be like,

Domain Name/wp-admin

If you get wordpress login page by entering above path then you surely can say that site is built on wordpress CMS. But wordpress provides an easier way to change the path of wordpress installation directory. This option is available in wordpress dashboard under settings option. If a user had changed the path then it is really difficult to guess the path. Specially when site owner restricts crawler to index their site contents. In this case below google search will not help you

inurl:wp-admin site:article-stack.com

Well! it is pretty easy to know wordpress installation directory path. Use the below path

Domain Name/robots.txt

You’ll get a text file containing path as follow

Sitemap: Domain Name/sitemap-web.xml

User-Agent: *
Disallow: /wp/wp-admin/
:
Disallow: /go/
Disallow: /forums/profile/

If robots.txt revealing the path you are trying to hide then you must know why robots.txt is imported for your site.

In case of above example, wordpress installation directory is Domain Name/wp/

Please note this
This hack is not to attract hackers. But to improve security only.
Amit Gupta

Hey! this is Amit Gupta (amty). By profession, I am a Software Eng. And teaching is my passion. Sometimes I am a teacher, as you can see many technical tutorials on my site, sometimes I am a poet, And sometime just a friend of friends...

  1. No comments yet.