Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Mod Rewrite Anti-Leech (A Better Version)


riki - 12:32 am on Feb 2, 2005 (gmt 0)


Hi Jim

thanks for the reply.

I suspected that might be the case. Thanks also for picking up those mistakes. I originally used a code generator
but that was my fault for mixing up the first few lines.

<snip>

The 2nd ReWrite rule does actual work, I have tested it. If someone links directly to an image it will redirect them to a html or php page. Which is a good option becuase you can redirect to your homepage. Which is a kind of seemless background approach.

The only downside to the 2nd ReWrite rule, is that if they embed the image, it produces a broken image icon, unlike the 1st method which does the substitution.

Just regarding the trailing ".*" sub-patterns, I'm just cautiously wonderring why that was added by the generator? If it's there for a reason that we've overlooked?

Many thanks again for your help.

riki

[edited by: jdMorgan at 1:24 am (utc) on Feb. 2, 2005]
[edit reason] No URLs or sigs, please. See TOS. [/edit]


Thread source:: http://www.webmasterworld.com/apache/2783.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com