This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: REDIRECT to 404
Message |

Joined: 12 August 2011
Posts: 3
Posted: 12 August 2011 at 9:30pm

Hi All - Any help on this would be appreciated!

I want hotlinks to a website and mobile browsers to both return a "404 not found" error message. Is the code below the simplist way to do that?  Thanks in advance!

RewriteCond Referer: .*(?:keywords|go|here).*
RewriteRule (.*) $1 [I,NF]
RewriteCond %{HTTP_USER_AGENT} (?:android|iphone|blackberry|palm) [NC]
RewriteRule .? - [NF]
Back to Top
Admin Group

Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 15 August 2011 at 7:17am

If you have ISAPI_Rewrite 2, the rules should be:

RewriteCond Referer: .*(?:keywords|go|here).*
RewriteRule (.*) /custom404.asp [I,L]

RewriteCond User-Agent: .*(?:android|iphone|blackberry|palm).*
RewriteRule .* /custom404.asp [I,L]

Back to Top

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum