View Single Post
Old 03-13-2004, 06:28 PM  
Theo
HAL 9000
 
Industry Role:
Join Date: May 2001
Posts: 34,515
If you buy traffic or own paysites, this {code} can help you

from the possibility one of the traffic affiliates or your paysite affiliates to send traffic from sites you do not want. It's a code you add to your .htaccess

A week ago some SE affiliate sent to one of our promo pages a single click from a domain having the word underage. (didnt have any illegal stuff..thank god) The sponsor reviewed their log files and terminated our account, something that costed us couple grands....

ok here's the code

[PHP]
# --------------------[ WE DO NOT WANT SUCH TRAFFIC AND WE BLOCK IT ]-----------------------

Options +FollowSymlinks
RewriteEngine on

#RewriteMap offender txt:./foul.map

#RewriteCond %{HTTP_REFERER} !=""
#RewriteCond ${offender:%{HTTP_REFERER}} ^-$
#RewriteRule ^(.*) http://blocked/ [R,L]

RewriteCond %{HTTP_REFERER} scat [NC,OR]
RewriteCond %{HTTP_REFERER} illegal [NC,OR]
RewriteCond %{HTTP_REFERER} beast [NC,OR]
RewriteCond %{HTTP_REFERER} lolita [NC]
RewriteRule ^(.*) http://blocked/ [L]

[PHP]


remove php tags,you add this code to your htaccess file
for each word you want to block use the following more times:

RewriteCond %{HTTP_REFERER} wordiwanttoblock [NC,OR]

Last edited by Theo; 03-13-2004 at 06:31 PM..
Theo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote