SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2007
    Location
    Toronto, ON
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy my google analytics getting messed up by sixdollarclick.com

    I've been getting about 6000 garbage hits a day all coming from sixdollarclick.com It is totally messing up google analytics.

    I just recently redid my website which involved moving from a windows host to an linux host.

    Once I got the new site up on the linux host I tried Both these entries in the .htaccess file from info I found on various support sites. But neither seemed to stop this traffic from getting through:

    RewriteEngine on
    # Options +FollowSymlinks
    RewriteCond %{HTTP_REFERER} sixdollarclick\.com [NC]
    RewriteRule .* - [F]

    and

    Order allow,deny
    Deny from sixdollarclick.com
    Allow from all

    I am also trying filters in GA, but it sucks that they are not retroactive, and they still did not seem to filter out all the spam traffic.

    Help.

  2. #2
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    8,897
    Mentioned
    138 Post(s)
    Tagged
    2 Thread(s)
    The second version is incorrect as that tells apache that people at that domain (i.e. people who work at sixdollarclick.com) are not allowed to visit your site, as opposed to people who are referred to your site by that domain.

    The first version should work though. Are you sure it doesn't? If you are, are you sure mod_rewrite is enabled on the host?
    Rémon - Hosting Advisor

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2007
    Location
    Toronto, ON
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It definitely was not working, but where the .htaccess file is concerned i am literally a stupid monkey cutting and pasting bananas I find lying around on the interweb.

    I have done some more research this morning and tweaked my file a little bit. (I had Rewrite Engine on multiple times for each entry I had pasted into my file.) I will give it another go using the first version and update tomorrow.

    Thanks

  4. #4
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i had the same problem previously but what i did was migrate my hosting made some changes. The best platform is linux believe me
    Last edited by Stevie D; Nov 29, 2011 at 15:58. Reason: Fake sig removed

  5. #5
    SitePoint Enthusiast
    Join Date
    Mar 2007
    Location
    Toronto, ON
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So it looks like its still not working. I already have 3000 hits from sixdollarclick this morning. Here is what I have in my .htaccess file.: (which I am assuming at this point I don't have written correctly.)

    Thoughts?

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /~easters2/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /~easters2/index.php [L]
    # Options +FollowSymlinks
    RewriteCond %{HTTP_REFERER} sixdollarclick\.com [NC]
    RewriteRule .* - [F]
    </IfModule>

    # END WordPress

    <files wp-config.php>
    Order deny,allow
    deny from all
    </files>

  6. #6
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    8,897
    Mentioned
    138 Post(s)
    Tagged
    2 Thread(s)
    You need to put that code before the WP code, otherwise it'll never fire (the code is executed in order). Also, get rid of the <IfModule ...>...</IfModule>, you don't need it

    Code:
    # Options +FollowSymlinks
    
    RewriteEngine On
    RewriteBase /~easters2/
    
    RewriteCond %{HTTP_REFERER} sixdollarclick\.com [NC]
    RewriteRule .* - [F]
    
    RewriteRule ^index\.php$ - [L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /~easters2/index.php [L]
    
    <files wp-config.php>
      Order deny,allow
      deny from all
    </files>
    Rémon - Hosting Advisor

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy

  7. #7
    SitePoint Enthusiast
    Join Date
    Mar 2007
    Location
    Toronto, ON
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for all the help on this ScallioXTX. Very much appreciate.

    I have changed my htaccess as you have suggested. I'll report back again tomorrow and see if it has done the trick.

    Is there any particular Sitepoint book or reference that teaches creating/altering the htaccess file? I honestly don't even know what kind/type of code we are dealing with here.

    Thanks again.

  8. #8
    SitePoint Enthusiast
    Join Date
    Mar 2007
    Location
    Toronto, ON
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And one other quick question:

    The references in the file to easters2 are from my development phase. I set up the site on the live host account using the IP address... the all the url's read http://xxx.xxx.xxx.xxx/~easters2 (something the web host does by default)

    I have now gone live so the site resolves to the proper domain name. Should those entries in the htaccess now read something different?

  9. #9
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    8,897
    Mentioned
    138 Post(s)
    Tagged
    2 Thread(s)
    Yes, you can probably remove them altogether. Remove the complete RewriteBase line, and replace RewriteRule . /~easters2/index.php [L] with RewriteRule . index.php [L]

    Make sure to keep a backup of the old file when you try this in case it doesn't work (some hosts are weird and won't work this way, though it is generally supposed to work).

    This code assumes index.php is in the root of the domain btw.
    Rémon - Hosting Advisor

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy

  10. #10
    SitePoint Enthusiast
    Join Date
    Mar 2007
    Location
    Toronto, ON
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey just wanted to give an update. The changes you made to my htaccess worked. The past 2 days in analytics they are completed gone.

    Thanks again ScallioXTX.

  11. #11
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    8,897
    Mentioned
    138 Post(s)
    Tagged
    2 Thread(s)
    Good to hear! And you're welcome
    Rémon - Hosting Advisor

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •