- Code: Select all
RewriteEngine on
RewriteCond %{HTTP_REFERER} !=%{REQUEST_ADDR}
RewriteRule ^(.*) /test/dwnld.php?f=$1
dwnld.php first pops up an ad and then redirects. However, I get an infinite redirection. I'm try to get it where it redirects the first time but does not redirect the 2nd.