Archive

Posts Tagged ‘hijack’

Promoting DuckDuckGo

August 22nd, 2011 No comments

DuckDuckGo is a beautiful, fast and secure search engine, which actually cares about the users privacy and does not track you.
As too few people yet know about that amazing search engine I thought about a way how to promote it.
Here’s my solution for sysadmins and webmasters:

Include the following rewrite rule into your .htaccess on the Apache Server.

RewriteEngine On
RewriteBase /

SetEnvIf Referer "google.([_a-zA-Z-]+/)" promote_duck
SetEnvIf Referer "yahoo.com" promote_duck
SetEnvIf Referer "baidu.com" promote_duck
SetEnvIf Referer "bing.com" promote_duck

Order Allow,Deny
Allow from all
Deny from env=promote_duck
ErrorDocument 403 http://duckduckgo.com/?q=$1&kz=-1

This will cause that every referrer request by Google, Yahoo, Baidu and Bing will be redirected to DuckDuckGo, showing the according search results.

=^.^= Lx

P.S. Here’s the forum discussion regarding this issue.