We have a problem with someone poaching the extensive ukulele song list at http://scorpex.net/Uke for a paid app.
Negotiations have broken down so any requests from the app are going to be redirected to a new “these songs are being ripped off” pdf file.
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^theapp [NC]
RewriteRule \.*$ http://scorpex.net/stop/stealing/uke/songs/please.pdf [R]
The problem is it creates a redirect loop – I can see why, I am not sure how to resolve it. Ideas people?
Suggestions: Only apply the rule if the filename doesn’t contain please.pdf.
or only do the redirect when the user tries to access an mp3 file.