Getting rid of referer

Discussion in 'Traffic Analysis' started by hovesh07, Jun 14, 2008.

  1. #1
    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!
     
    hovesh07, Jun 14, 2008 IP
  2. gostats

    gostats Peon

    Messages:
    325
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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.
     
    gostats, Jun 14, 2008 IP
  3. hovesh07

    hovesh07 Well-Known Member

    Messages:
    389
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #3
    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"
     
    hovesh07, Jun 14, 2008 IP
  4. mojtata

    mojtata Well-Known Member

    Messages:
    722
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #4
    i have similar question ... what should you get with this trick instead of directconnect.pl - nothing maybe ?
     
    mojtata, Jun 15, 2008 IP
  5. gostats

    gostats Peon

    Messages:
    325
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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.
     
    gostats, Jun 15, 2008 IP
  6. hovesh07

    hovesh07 Well-Known Member

    Messages:
    389
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #6
    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.
     
    hovesh07, Jun 15, 2008 IP
  7. gostats

    gostats Peon

    Messages:
    325
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #7
    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.
     
    gostats, Jun 15, 2008 IP
  8. hovesh07

    hovesh07 Well-Known Member

    Messages:
    389
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #8
    Either the guy stopped sending traffic, or your solution worked (probably the second).
    I've really gotta learn this .htaccess stuff better.
    Thanks again

     
    hovesh07, Jun 16, 2008 IP
  9. gostats

    gostats Peon

    Messages:
    325
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #9
    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.
     
    gostats, Jun 16, 2008 IP