By drupalbaby on
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>test server mode | future mission statement</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="robots" content="index,follow" />
<meta name="DC.title" content="test server mode | future mission statement" />
<link rel="alternate" type="application/rss+xml" title="test server mode RSS" href="http://mysite.com/rss.xml" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/default/files/css/a4e72b56aee842a2be125d5313adeaec.css" />
<script type="text/javascript" src="/sites/default/files/js/c0f7bf18d8d0f3e79982f91ddf7ba412.js"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/", "lightbox2": { "rtl": 0, "file_path": "/(\\w\\w/)sites/default/files", "default_image": "/sites/all/modules/lightbox2/images/brokenimage.jpg", "border_size": 10, "font_color": "000", "box_color": "fff", "top_position": "", "overlay_opacity": 0.8, "overlay_color": "000", "disable_close_click": true, "resize_sequence": 0, "resize_speed": 400, "fade_in_speed": 400, "slide_down_speed": 600, "use_alt_layout": false, "disable_resize": false, "disable_zoom": false, "force_show_nav": false, "loop_items": false, "node_link_text": "View Image Details", "node_link_target": false, "image_count": "Image !current of !total", "video_count": "Video !current of !total", "page_count": "Page !current of !total", "lite_press_x_close": "press \x3ca href=\"#\" onclick=\"hideLightbox(); return FALSE;\"\x3e\x3ckbd\x3ex\x3c/kbd\x3e\x3c/a\x3e to close", "download_link_text": "Download Original", "enable_login": false, "enable_contact": false, "keys_close": "c x 27", "keys_previous": "p 37", "keys_next": "n 39", "keys_zoom": "z", "keys_play_pause": "32", "display_image_size": "", "image_node_sizes": "()", "trigger_lightbox_classes": "", "trigger_lightbox_group_classes": "", "trigger_slideshow_classes": "", "trigger_lightframe_classes": "", "trigger_lightframe_group_classes": "", "custom_class_handler": 0, "custom_trigger_classes": "", "disable_for_gallery_lists": true, "disable_for_acidfree_gallery_lists": true, "enable_acidfree_videos": true, "slideshow_interval": 5000, "slideshow_automatic_start": true, "slideshow_automatic_exit": true, "show_play_pause": true, "pause_on_next_click": false, "pause_on_previous_click": true, "loop_slides": false, "iframe_width": 600, "iframe_height": 400, "iframe_border": 1, "enable_video": false }, "thickbox": { "close": "Close", "next": "Next \x3e", "prev": "\x3c Prev", "esc_key": "or Esc Key", "next_close": "Next / Close on last", "image_count": "Image !current of !total" } });
//--><!]]>
</script>Do I absolutely need CDATA to show?
If I have to keep CDATA how can i cleanse it so no one knows i'm using Drupal?
How do I remove
from showing?
I'm using Boost to cache my pages is there anyway to change the directory it makes these caches from or to change the file name output so it doesn't look like its being handled by a CMS?
I have a double post of <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> , how can I remove one?
This is my source code for page.tpl.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>">
<head>
<title><?php print $head_title ?></title>
<?php print $head ?>
<?php print $styles ?>
<?php print $scripts ?>
</head>
Comments
If you don't want the Drupal
If you don't want the Drupal javascript library configurations required there in the script CDATA, just stop using lightbox.
Yes, CDATA is the standards-compliant way of putting stuff inside script tags.
You can turn off css and javascript caching if you want unmunged filenames. But that's a bad idea performance-wise.
Not sure where you are getting an extra Content-type from. Depends of the modules you have enabled. ... but it doesn't even look possible from the template you pasted, was that a true view-source or something from after the browser had cooked its DOM?.
What exactly is your issue? I've seen much much messier headers than that. There's not much you can do to prevent anyone who wants to snoop figuring out what your server is running. Why do you think this is a problem?
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Well in the CDATA it
Well in the CDATA it says:
Is there anyway to remove Drupal text?
I know people could probably find out what I'm using but for the people that can't I'd like to keep it a secret.
And as for the output of:
Thats what i see when i view source from firefox, safari, ie
To anyone who might of ran into the Duplicate Meta Post:
Here is more information about it: http://drupal.org/node/451304
Edited by: VeryMisunderstood; added code tags=-=
There are far more methods used to figure out a site is built on drupal than reading the head tag.
Don't bother
You will never be able to hide Drupal completely - so don't waste your time trying.
And if you think hiding it will offer some sort of protection - think again. A lot of script kiddies and botnets don't bother even checking what you are running before trying a random exploit. My Drupal servers logs are full of attempts to break into phpBB etc and various Windows/IIS apps (the server isn't even running Windows).
Like i said its not for
Like i said its not for script kiddies its just me wanting to clean it up to a certain level... I think i've already commented on this though. Please just reply if you have a solution to offer rather to add to what people have already written...
Sheesh
You weren't clear - you said you didn't want anyone knowing you use Drupal. So in your own words it wasn't just about cleaning up some formatting. And security through obscurity is the most common reason for that misguided request.
You'd think someone who doesn't seem to bother answering anyone else's questions wouldn't be so picky about people answering theirs.
"I know people could probably
"I know people could probably find out what I'm using but for the people that can't I'd like to keep it a secret." ... can we move along here. I'm not looking to start a argument over something as little as this. I've seen it done I know its possible and all I'm asking is that for anyone whose accomplished this to comment on how they went about it.
styro: i'm just bad at explaining because i don't know how to get across what i want thats all. i'm on the chats on irc for drupal support and when i can help to answer anothers question i do. just sometimes the channel is dead so I come here to ask. thats all...
Anyone reading this post who was curious about the rss problem I've found a post searching the forums a bit more: http://drupal.org/node/28336 check that out.
The only problem i'm stuck with now is: CDATA outputing the text Drupal. Would anyone know what directory or file would be handling the output for that?
Solved so far:
- Duplicate Posting of:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />- Removing RSS.xml line from page source
so delete it then!
As I said - stop using that lightbox module if you don't want the code that is required to make lightbox work showing up in your source.
Just delete
print $scriptsif that's the effect you want.That's probably not what you want, but it is the answer to your question: how to remove the code in that script tag. Using Drupal modules requires using Drupal code.
If you don't want your website to contain Drupal code, then you can potentially code your own version of lightbox that doesn't have any configuration options. But if you want the Drupal+lightbox features, you'll have to live with it. Read the javascript - that keyword is part of all the libraries.
You are asking the wrong question, which is why there are probably no right answers.
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Well i would think then that
Well i would think then that i could go into the thickbox module and do my edits from there rather then removing the script tag... Simple enough hope that didn't hurt too much to everyone reading the post lol. thanks
I've trying to find out
I've trying to find out exactly the same thing, I'm fussy and don't like the word 'drupal' plastered all over the place. You can't ask simple questions without getting attacked for it sometimes.
=-=
It's not that anyone is being attacked its more of a reward issue. If you don't want any reference to drupal you have to hack every file including js files and alter them. This however is not a best practice and is not supported and could cause other issues.
as a side note, one can remove every reference to "drupal" and your site will still be recoignized as drupal which makes the hunt and removal a large time sink.
@klymaxx have you figured out
@klymaxx have you figured out a solution yet... i also need to hide the drupal name in the given line below...
jQuery.extend(Drupal.settings, { "basePath": "/"....
i have lightbox running to and would like to keep using it too.
could you manage to find a solution to your issue?
=-=
no need to bump every old post with the same question. Thanks.