Skip to content

Domain cloaking & redirection

Photo of James Richardson

James Richardson

Co-Founder & Partnerships

Posted: 24 Mar 2020

Cloaking is one of many blackhat techniques that can bury your site or even get a website excluded from the index of search engines. As with almost everything, there is both a beneficial and irritating side to cloaking.

What Is Cloaking?

Cloaking involves preparing two or more versions of the same page: the readable version for human visitors and another for search engine robots. The version for search engines is usually optimised to give the appearance that the page is keyword-rich, for instance, so that the site makes headway in search engine listings. But if all the keywords (dozens, even hundreds of vaguely relevant possibilities) were in the readable content, it would quickly irritate human readers.

It's cheating, right?

Yes. Cloaking is outright cheating and an attempt to manipulate search engines. It is a constant battle of wits with search engines that need to neutralise such attempts for fear of antagonising their own customers. Otherwise, the integrity of search results is at risk. 

How Is Cloaking Done? 

Cloaking is a server-side operation. A special script is deployed on the server. When a request arrives, the script delivers the version appropriate to the IP and the user agent of the request. Since search engines identify themselves as spiders, not as browsers, the user agent check results in serving up the especially-prepared page.

Is There a Positive Side to It?

On the other hand, a technique similar to cloaking is also routinely used for serving up, in the lingo of Internet marketing, targeted content. This is geotargeting (short for "geographical targeting"), a server–side technique for discriminating the geographical location of a visitor and displaying appropriate content. 

A well-known example of this is when a Vancouver resident and a Hong Kong businessman both type in the URL. The former receives (with local merchant advertising, naturally) while the latter is pleased to get the Chinese-language version. Similarly, Canadians who type in never reach the New York headquarters. They receive instead. 

Geotargeting is a legitimate application of cloaking because, privacy issues aside, the web site merely provides what is logically the appropriate or preferable version to each user. As we have seen, search engines already practice cloaking and selective display of query results.

As you can see, there is a line that separates unethical and ethical cloaking. Make sure you do not cross over.

Photo of James Richardson

James Richardson

Co-Founder & Partnerships

Working in the SEO industry for many years alongside some of Australia’s biggest brands, James started his online career running online Sports Fan sites, as well as cutting his teeth on several successful eCommerce brands and content sites.

Previously holding various senior roles across the Sales and Marketing teams for ASX listed companies, he went on to found Optimising with Daniel and is proud he has helped mould it into one of Australia's leading SEO agencies.

When he’s not in the office he’s at home having pretend tea parties, or building a cubby house in the lounge room with his three young girls.


We value purpose over profit and take action.

Our values and beliefs have always set the tone and approach to our business. It's not just enough to grow as a company and produce profits, we have a global responsibility to make our economy more inclusive and sustainable. As both a B Corp and a member of 1% for the planet, we have further cemented this purpose within our organisation.

However, our work isn't done quite yet. For Optimising, this is simple the start of our journey towards building a better business and world!

Partner with
the real deal

Chat with us today and we’ll get you the results you deserve.

Google Partner Premier 2022
Shopify plus partners
AWIA: Australian Web Industry Association
Aboriginal Flag
Torres Straight Flag

We acknowledge the Wurundjeri Woi Wurrung people as the Traditional Owners of the land now known as Richmond. We pay our respects to Elders from all nations - and to their Elders past, present and future.

Pride flag

Optimising is committed to cultivating and preserving a culture of inclusion and connectedness. We are able to grow and learn better together with a diverse team of employees.