prevent a page from being picked up by a search engine
Moderator: General Moderators
- noguru
- Forum Commoner
- Posts: 61
- Joined: Thu Jun 06, 2002 4:03 am
- Location: Just north of the City Of Gold, Land of Milk and Honey
prevent a page from being picked up by a search engine
Is there a way to prevent a webpage from being picked up by 'n search engine? I used frames and now google is not only picking up the default page (which contains the framesets), but also the page in the main frame. When this page is loaded, the functionality in the other frames is lost. I need only the default page to be picked up by search engines.
- noguru
- Forum Commoner
- Posts: 61
- Joined: Thu Jun 06, 2002 4:03 am
- Location: Just north of the City Of Gold, Land of Milk and Honey
i've tried it, but google still picks up my page. does it take a while?
i've managed to write the following piece of client-side script that also does the trick. it checks if the window is a frame and if not, it redirects to the default page:
Thanks anyway.
i've managed to write the following piece of client-side script that also does the trick. it checks if the window is a frame and if not, it redirects to the default page:
Code: Select all
<script language="JavaScript">
wn = window.name;
if (wn.length==0) {
window.parent.location.href = 'http://whatever/';
}
</script>