Help, I'm trying to get rid of a referer by putting the following lines in my .htaccess file: RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?.*(-|.)domainname(-|.).*$ [NC,OR] RewriteCond %{HTTP_REFERER} (domainname) [NC,OR] It's been a couple hours and the numbers still seem to be going up. Am I doing something wrong? "domainname" does not include the TLD suffix. Thanks!
Do you mean that you are trying to block traffic from a referrer? If it is referrer spam, you might want to just block the IP addresses using .htaccess.
I ordered a sample traffic package at http://forums.digitalpoint.com/showthread.php?t=871376 It was supposed to be 10,000 visits, but it hasn't stopped and is chewing up my bandwidth. Acc. to Google analytics, the referrer url is "directconnect.pl"
i have similar question ... what should you get with this trick instead of directconnect.pl - nothing maybe ?
Is it bot or pop-up traffic to boost your alexa ranking? I'd suggest staying away from that - it will not do anything to help your business long term. Do you know if the host ips are unique? Also, is there any movement of the visitors after they land or are they bounces? GoStats does track unique hosts, plus the last guests can be helpful if there are any patterns to the traffic. Overall it will help you grow your business if the traffic is just bots or a script to boost alexa rankings.
I asked for a free review copy of 10,000 hits and it hasn't stopped, even though I've asked. It's clobbering my bandwidth. I've done what I thought was correct with .htaccess, but the "traffic" is still trickling in.
hmm, ok in that case try the following: RewriteEngine on RewriteCond %{HTTP_REFERER} directconnect\.pl [NC] RewriteRule .* - [F] Code (markup): Note: the last part "RewriteRule .* - [F]" is the line that will fail the request and send a 403 if the above condition matches. You don't need to add the OR tag unless you have more than one domain to match, and you don't need to add the OR tag to the last domain in the list. -If the above don't work, check that your server had mod-rewrite enabled. Also, if traffic is still getting through, try doing IP based blocking on their range.
Either the guy stopped sending traffic, or your solution worked (probably the second). I've really gotta learn this .htaccess stuff better. Thanks again
You can check your httpd error log to see if the 403s are being recorded. (If you have error logging enabled). .htaccess stuff does come across as cryptic so I totally understand where you are coming from.