In der Apache Rewrite Guide:
http://httpd.apache.org/docs/misc/rewriteguide.html
gibts diese Erklärung:
Was mich wundert: Dort sind auf einem Host 3 htmls angegeben, aber es wird nicht erwähnt, wie ich das per Wildcard mit dem ganzen Host machen kann.Referer-based Deflector
Description:
How can we program a flexible URL Deflector which acts on the "Referer" HTTP header and can be configured with as many referring pages as we like?
Solution:
Use the following really tricky ruleset... 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]
... in conjunction with a corresponding rewrite map:
##
## deflector.map
##
http://www.badguys.com/bad/index.html -
http://www.badguys.com/bad/index2.html -
http://www.badguys.com/bad/index3.html http://somewhere.com/
This automatically redirects the request back to the referring page (when "-" is used as the value in the map) or to a specific URL (when an URL is specified in the map as the second argument).
Also Beispiel
Also alle Anfragen von http://blabla.de will ich umleiten, ich kann also nicht jede denkbare URL da auflisten, da die Seite die ich abweisen will, dynamischen Content verwendet.
Hat da jemand nen Tipp für mich ?
Gruss
Hotzi