Cpanel/WHM - ModRewrite Deflector Problem

What I wanted to do is to deflect links from warez sites coming to my website And applied the following Apache Rules :-

From http://httpd.apache.org/docs/misc/rewriteguide.html

RewriteMap deflector txt:/path/to/deflector.map

RewriteCond %{HTTP_REFERER} !=""
RewriteCond ${deflector:%{HTTP_REFERER}} ^-$
RewriteRule ^.* %{HTTP_REFERER} [R,L]

RewriteCond %{HTTP_REFERER} !=""
RewriteCond ${deflector:%{HTTP_REFERER}|NOT-FOUND} !=NOT-FOUND
RewriteRule ^.* ${deflector:%{HTTP_REFERER}} [R,L]

--

It worked when I implemented on my Cobalt RaQ and now moving this same codes to my Cpanel/WHM based machine in the httpd.conf as I did before.

But it does not seems to work.

Is there anything special which I need to set to have it work ?

Thanks.

Edwin

 

 

 

 

Top