Forum Moderators: phranque
if you have a range of ip's then you might want to use Regex to represent that particular range.
Do search on WebmasterWorld and you'll know what I mean.
[edited by: jdMorgan at 2:39 am (utc) on Jan. 8, 2004]
[edit reason] de-linked [/edit]
RewriteEngine On
RewriteCond %{REMOTE_ADDR} ^1\.9\.3\.4
RewriteCond %{REQUEST_URI} !^/say\.html$
RewriteRule \.html$ http://www.yoursite.com/say.html [R,L]
RewriteEngine On
RewriteCond %{REMOTE_ADDR} ^1\.9\.3\.4
RewriteRule \.html$ /say.html [L]
[edited by: jdMorgan at 2:40 am (utc) on Jan. 8, 2004]
> Hmmm, Jim, so to be silent - with L flag, in the logs will it show the 302 code?
A silent redirect shows nothing in the browser address bar -- or in the logs. All you will see in the logs is that the byte count of the file was different. The advantage is that there is no unique URL by which this "replacement" page can be reached, so it's safer.
ganderla,
A noble and just cause! Either of the methods posted above should work fine.
Better yet, thank them for raising your click-through rate and tell them how they have helped raise your sales *and* cut your CPC because your CTR is so much better with them helping you out! :)
I hope you've reported them to G as well - it *is* fraud to click repeatedly on a competitor's ad.
Best,
Jim