I have a modest website that uses a lot of Javascript.
If anybody views the site and does not have Javascript enabled I want to
politely redirect them to another page, so I put this bit of code in my
<head> section :
<script type="text/javascript"
language="JavaS cript">document .write("<!"+"--")</script>
<meta http-equiv="Refresh" content="0; URL=noscript.ht ml">
<!--//-->
So far so good.
It appears to work, *and* it passes the the 'W3C MarkUp Validation Service'
test ( http://validator.w3.org/ ).
Now the bad news: Google doesn't index my site any more, presumably because
their crawler always gets redirected.
Does anybody have a solution to this dilema, please?
Redirecting to a 'with-script' page is not an option because my page is
linked-to by many other sites. 11 2013
Peter wrote on 28 feb 2004 in comp.lang.javas cript: If anybody views the site and does not have Javascript enabled I want to politely redirect them to another page, so I put this bit of code in my <head> section :
<script type="text/javascript" language="JavaS cript">document .write("<!"+"--")</script> <meta http-equiv="Refresh" content="0; URL=noscript.ht ml"> <!--//-->
Try doing it the other way around:
Start with the no javascript file and clientside-js-redirect
to the yes javascript page.
Now the bad news: Google doesn't index my site any more, presumably because their crawler always gets redirected.
This can best be done serverside:
if the IP is in the google range, redirect
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
"Evertjan." <ex************ **@interxnl.net > wrote in message
news:Xn******** ************@19 4.109.133.29... Peter wrote on 28 feb 2004 in comp.lang.javas cript:
Now the bad news: Google doesn't index my site any more, presumably because their crawler always gets redirected.
This can best be done serverside:
if the IP is in the google range, redirect
And when google find out that you are cloaking the site will be banned. http://www.google.com.au/webmasters/2.html#A1 - bottom of the page.
Cheers
Richard.
Richard Formby wrote on 29 feb 2004 in comp.lang.javas cript: "Evertjan." <ex************ **@interxnl.net > wrote in message news:Xn******** ************@19 4.109.133.29... Peter wrote on 28 feb 2004 in comp.lang.javas cript:
> Now the bad news: Google doesn't index my site any more, presumably > because their crawler always gets redirected.
This can best be done serverside:
if the IP is in the google range, redirect
And when google find out that you are cloaking the site will be banned.
http://www.google.com.au/webmasters/2.html#A1 - bottom of the page.
Perhaps down under?
The above site wasn't googled anyway, so if the OP wants it, he has to
invent something to keep google on the page that the majority of the
visitors see.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan. wrote: Richard Formby wrote on 29 feb 2004 in comp.lang.javas cript:
"Evertjan." <ex************ **@interxnl.net > wrote in message news:Xn****** **************@ 194.109.133.29. ..
Peter wrote on 28 feb 2004 in comp.lang.javas cript:
Now the bad news: Google doesn't index my site any more, presumably because their crawler always gets redirected.
This can best be done serverside:
if the IP is in the google range, redirect
And when google find out that you are cloaking the site will be banned.
http://www.google.com.au/webmasters/2.html#A1 - bottom of the page.
Perhaps down under? http://www.google.com/webmasters/2.html#A1
Says the same thing. Only difference I saw in the two pages, at a quick
glance, was the .au in the address. The section the OP referred to was
verbatim.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/
Randy Webb wrote on 29 feb 2004 in comp.lang.javas cript: Perhaps down under?
http://www.google.com/webmasters/2.html#A1
Says the same thing. Only difference I saw in the two pages, at a quick glance, was the .au in the address. The section the OP referred to was verbatim.
Hey, it was a joke !
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan. wrote: Randy Webb wrote on 29 feb 2004 in comp.lang.javas cript:
Perhaps down under?
http://www.google.com/webmasters/2.html#A1
Says the same thing. Only difference I saw in the two pages, at a quick glance, was the .au in the address. The section the OP referred to was verbatim.
Hey, it was a joke !
Oooooooooops :)
--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/
Randy Webb wrote on 01 mrt 2004 in comp.lang.javas cript: Evertjan. wrote: Randy Webb wrote on 29 feb 2004 in comp.lang.javas cript:
Perhaps down under?
http://www.google.com/webmasters/2.html#A1
Says the same thing. Only difference I saw in the two pages, at a quick glance, was the .au in the address. The section the OP referred to was verbatim.
Hey, it was a joke !
Oooooooooops :)
FAQ remains that all Google© pages are displayed upside down over there.
Or so I have heared.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
No Evertjan !
But the code runs backwards.
Regards
Don
"Evertjan." <ex************ **@interxnl.net > wrote in message
news:Xn******** ************@19 4.109.133.29... Randy Webb wrote on 01 mrt 2004 in comp.lang.javas cript:
Evertjan. wrote: Randy Webb wrote on 29 feb 2004 in comp.lang.javas cript:
>Perhaps down under?
http://www.google.com/webmasters/2.html#A1
Says the same thing. Only difference I saw in the two pages, at a quick glance, was the .au in the address. The section the OP referred to was verbatim. Hey, it was a joke !
Oooooooooops :)
FAQ remains that all Google© pages are displayed upside down over there.
Or so I have heared.
-- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
Don Grover wrote: No Evertjan ! But the code runs backwards. Regards Don
I am trying to make an Australian version of my page. Upside down is no
problem, but trying to implement backwards execution of scripts I have
some assumably small problems. Although 'goto' does not exist in
Javascript I feel the need to implement 'comefrom'.Do I need
write-only-memory (wom)? Any ideas? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Kai Grossjohann |
last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window.
That's fine, I don't need to do anything about it.
But Ctrl-N in IE appears to clone the current window. Is there a way
to intercept the key so that I can do stuff on the server side to make
the new window behave correctly?
(We have a JSP-based webapp which stores state in the session. Now if
two windows access (and modify!) the same session, then madness will
result....
|
by: Retlak |
last post by:
The recommended (on dozens of websites) and effective (works in
Netscape, MSIE, Mozilla, probably others) way to detect if a browser
has Javascript turned off is to put this in the <head>:
<noscript>
<meta http-equiv="refresh"
content="1;url=http://yourURL/nojscript.html">
</noscript>
This redirects to a doc which typically says "You need to enable
|
by: lozd |
last post by:
Would appreciate any solutions people could offer for this.
Basically I wan't to use a frameset with an aspx page as the contents
rather than a htm page and I'd like to be able to redirect the main page from
the code behind the contents page.
I want to do this to allow the use of asp "linkbuttons" instead of
hyperlinks so I can do a little processing before redirecting. The main
reason for this to prevent hyperlinks of pages that have...
|
by: Prometheus Research |
last post by:
http://newyork.craigslist.org/eng/34043771.html
We need a JavaScript component which will auto-submit a form after a
set period has elapsed. The component must display a counter that
dynamically shows the minutes and seconds remaining before submission.
We have a fairly tight deadline (by 5PM EST, Friday, June 25); we are
using a "bounty" in the hope of getting a few good responses in a
hurry.
BOUNTY: $200 for first place, plus a $50...
|
by: Greggory |
last post by:
Hi all,
when a client at my "C#/asp.net - page" has its javascript turned off,
I want to redirect him to another page. This must be done by a
javascript.
Can I somehow autopost a page to itself, and let the javascript add
some post-variable to tell if it has been working or not ?
Best Regards
| |
by: Privacy Advocate |
last post by:
//crossposted to: comp.lang.javascript, alt.comp.lang.javascript in an
effort to get factual answers from JavaScript experts//
Simply put; Is it possible to obtain the real (actual) IP address of
someone (client) that visits a web site through an anonymous proxy if
this person ONLY has JavaScript enabled in their browser? This is NOT
a question about PHP, perl, VBScript, Java(.class), or ActiveX. Let us
_only_ deal with JavaScript for...
|
by: Mark Rae |
last post by:
Hi,
Just had an interesting message from someone who was unable to view one of
my sites because they have JavaScript turned off, and expecting me to
re-write my site so that they could view it...
I'm interested in hearing other people's opinions about this. I use
JavaScript all the time, and can't really imagine ASP.NET development
without it...
|
by: sreekeerthi |
last post by:
hi friends...this is keerthi...i am doing a project where i want to redirect my page when ever the back button is clicked...for this i am using window.onbeforeunload method..and for page redirection i am using window.location and my code is as follows
<html>
<head>
<script type="text/javascript">
var confirm = true;
window.onbeforeunload = unload;
function unload()
{
if(confirm)
|
by: Avaenuha |
last post by:
Okay. I'm coding a login function for an online security subject at uni. It's written in PHP5, on a Solaris server; I don't have permissions to alter or even access the php.ini file, I believe.
What is supposed to happen is:
User fills in their username and password, hits 'submit'
javascript takes a timestamp, usernamd and password, calculates an md5 hash, fills in a hidden form with the username, hashvalue and timestamp, and sends that to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |