Is there a way to determine if a Site Was written in Drupal?

In other words...if i visit a site...and look at the code...is there a way to determine if it was written in Drupal?

If not...is there another way to determine if Drupal was used?

thanks

~T

Comments

MeInc’s picture

roper.’s picture

If you view the source of a Drupal site you will almost undoubtedly see something similar to the following snippet in the <head> ... </head> section somewhere.

<link type="text/css" rel="stylesheet" media="all" href="/sites/default/files/css/css_4b26f2d1b28cd074a3fb2fb3d2e17318.css" />
<script type="text/javascript" src="/sites/default/files/js/js_eb868b81d8a8b4e68fc5a853f621a3f6.js"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, {"basePath":"\/", ... A WHOLE BUNCH OF OTHER STUFF HERE ...});
//--><!]]>
</script>

So yeah, the key things to look for are the src's of the CSS/JS which will almost always (but not always always) contain "/sites/default/files/..." or look for the jQuery.extend(Drupal.settings, ...); part.

edit: or above. :P

acwebb’s picture

Hey Thanks Rope...

I also noticed in this site
http://www.symantec.com/connect/

...that the main page is not Drupal.

I wonder why Symantec didn't just do the whole site in Drupal?

~T

roper.’s picture

Looks like Drupal to me...

jQuery.extend(Drupal.settings, {"basePath":"\/connect\/", ... });

edit: Unless you mean http://symantec.com isn't Drupal, which it appears it is not...

acwebb’s picture

Exactly...the home page is NOT DRUPAL...but the other page is.

roper.’s picture

Ok, I see... Sorry for the confusion.

I think that the Connect site is kind of intended to be somewhat of a separate entity from the main Symantec site. Here's a whole case study on the Symantec Connect Drupal implementation if you're interested: http://drupal.org/symantec-connect-social-business-software

deryck.henson’s picture

I use this for Google Chrome:

https://chrome.google.com/webstore/detail/dapjbgnjinbpoindlpdmhochffioedbn

Called the "BuiltWith Technology Profiler". Pretty useful I use it all the time too. Shows if it was made with any major CMS as well as language, server, HTML5, jQuery, and a ton more technologies.

:)