Free Hosting

About the author

Ashish Prajapati

Hi there, Myself Ashish Prajapati. I'm currently doing my computer science degree. I love computers and programming a lot as I started this blog (Geekybits) just for to learn and experience about wordpress sites.I spend my whole day just sitting in front of my laptop what I just love. You can check out my professional skills and more about me on LinkedIn. And yeah thanks for visiting this blog.

Related Articles

61 Comments

  1. 1

    Dave

    Thanks Ashish. I had tried the .htaccess approach for ilovevitaly and economo.com and it didn’t work. I am interested in the javascript solution that you propose here. Two questions:

    Can the spammer disable javacript on their end?

    Instead of sending the traffic to Google, can you just send it to a non existent domain, such as fgsgcnvyawoomtqhzrxglxt
    .com?

    Reply
    1. 1.1

      Ashish Prajapati

      hi Dave
      Javascript code is going to run in our website , thus no one can affect what our website is doing. and Yes you can replace the google.com with any other url.

      Reply
      1. 1.1.1

        Vikas

        I think Dave is right. Javascript will be running on client’s browser so we will have to use both.

        Reply
  2. 2

    KM

    I am a new to this so bear with me. This spammer changes the referral sites everyday around 5:00 pm Eastern. From what I can fin they have an additional 108 domains listed under the same name. Is it possible to ban the server, or IP range with the script above instead of waiting for them to hit and take action? I have tried blocking with htaccess unsuccessfully the domains by this spammer.

    Reply
    1. 2.1

      Ashish Prajapati

      You can add all the domains by comma as written in the code, that every domain will be blocked.

      Reply
      1. 2.1.1

        KM

        they have 100+ additional domains that we don’t of yet. Instead of waiting to get hit and then adding th domain, is there a way to block their server all together? This way I don’t have to worry about this spammer tonight, tomorrow, the next day, etc.

        Reply
        1. 2.1.1.1

          Ashish Prajapati

          What you want to do is a right thing. But you can not block the server, a DNS server point to millions of domains and no one can have their own server for their domains. Hope you understand.
          Best
          Ashish

  3. 3

    Lisa

    Hello Ashish,

    I am using Squarespace. I used their code injector to add your javascript code to the header. Will this work on it’s own or do I need to inject the PHP code as well? I am not really a web developer so pardon me if this is a stupid question. Our site is being hit heavily by ilovely.com Thank so much. – Lisa

    Reply
    1. 3.1

      Ashish Prajapati

      Javascript code will do the work. you can use any one of this.

      Reply
  4. 4

    Daniel

    Hello Ashish!

    One question – I am running WordPress with Graphene theme. I want to add the PHP code to header.php. Since I am not good at PHP my question is where exactly should I place this code – in the beginning of the file, at the end of it or somewhere else?

    Thank you in advance!

    Reply
    1. 4.1

      Ashish Prajapati

      Place the code in your theme header.php just after head tag.

      Reply
  5. 6

    KM

    When I add the PHP code to my header.php file, the physical code shows up in my header when viewing the website. Tried it in all places. Also figured I would try the javascript seperate from the php code. Neither are working to block the traffic. Also have tried htaccess and that has not worked. ilovevitaly still manages to get through for all.

    Reply
    1. 6.1

      Ashish Prajapati

      This happens if you do not place code properly. check if you are adding code between other syntax.
      In your theme folder header.php file, look at the beginning and search for head tag, now add code just after head tag.

      Reply
      1. 6.1.1

        himanshu

        Same is happening with me, the code shows up physically.
        I have placed just below

        Pls tell what to do?

        Reply
        1. 6.1.1.1

          Ashish Prajapati

          Hmm okay I’m updating the article for this issue.

  6. 7

    Fee1in

    Hi! I use google analytics on my blog on livejournal.com , and i can’t edit .htaccess file. I should create user filter, but how? Pls write how to do it, and block this referal traffic.

    Reply
  7. 8

    Jonathan

    How annoying are all these spam sites? At first glance I was happy to see a spike in traffic, but that promptly turned into frustration of epic proportions. These spam referrers are absolutely parasitic.

    I managed to filter many of them via the Referrers Exception list in Google Analytics, but Ilovevitaly is still getting through.

    Will definitely give this a try. Thank you!

    Jon

    Reply
    1. 8.1

      Ashish Prajapati

      Hi jon,
      You can surely filter out the analytics, that’s a temporary solution which just doesn’t show you the traffic from this spammers. So it doesn’t stop this spammers from visiting your site which can slow down your site performance. Everyone I have seen talking about filtering but its not the solution. Now its too much from this spammers. We will find a way for this. You can also report google for this spam site here https://www.google.com/safebrowsing/report_badware/
      Thanks jon
      Ashish

      Reply
  8. 9

    Michael

    iedit.iloveitalyDOTcom is still showing up for me. Nothing I have tried is getting them blocked.

    Reply
    1. 9.1

      Ashish Prajapati

      Then try adding the url with a comma in the code above. It should work.

      Reply
  9. 10

    urashita

    This solution is really impressive.
    I will share your code on my web site.
    http://urashita.com/archives/1834

    Thanks!

    Reply
  10. 11

    urashita

    I applied this code in my header.php, but still does not seem to work.

    Reply
    1. 11.1

      Ashish Prajapati

      Please see the updated php code I have written above.

      Reply
  11. 12

    Annette

    I use the standard google website – how/where can I put the blocking scripts?
    Or alternately what filter can I put on in analytics?
    Ta much from someone with a bit of basic knowledge but not enough to sort this out!

    Reply
  12. 13

    Colin Thornton

    Hi Guys

    I have had the same problem for the past month, 75 spam referrals, I have inserted the javascript code below so will continue to monitor, Just one question Ashish as I am not that technical, I note all these hits are coming from Russia (RU) is there a way to block hits from this country and would that work?

    Reply
    1. 13.1

      Ashish Prajapati

      Yes sure you can block all the visits from any specific servers. But that way you will loose all the visitors from there.

      Reply
  13. 14

    Colin Thornton

    I only really target the UK for customers so would blocking this specific server hurt my UK traffic?

    Reply
    1. 14.1

      Ashish Prajapati

      No it won’t. You can stop visitors from the country but as this spam does’t visit but actually generating referral visit. So right now I’m not able to find a way to do so. Some of the site I have seen talking about .htaccess file and adding nameservers but that will not work.

      Reply
  14. 15

    Colin Thornton

    Anette I have set up a “Custom Filter” in Analytics using the select filter field and then enter “Russia” in the filter pattern field

    Colin

    Reply
  15. 16

    Kevin

    When I add the code to my wordpress header file, I get this:

    Parse error: syntax error, unexpected ‘http’ (T_STRING), expecting ‘,’ or ‘;’ in /home/isinkori/public_html/bestrifle.net/wp-content/themes/point/header.php on line 10

    What have I done wrong?

    Reply
    1. 16.1

      Matt

      There’s a bad character in the JavaScript and PHP above, just before http://ilovevitaly.com there’s a ’ which should be a ‘ If you fix that the code should load without syntax errors.

      If anyone is using the JavaScript instead of the PHP, note that you need to add a ‘ after http://ilovevitaly.com in the JavaScript code above. It’s missing and will cause syntax errors.

      Reply
      1. 16.1.1

        Ashish Prajapati

        Thanks Matt for stopping by and your comment. I have made it correct. Before it was ok, but while updating I made mistake.

        Reply
        1. 16.1.1.1

          Matt

          Hi Ashish,

          The javascript doesn’t seem to be working unfortunately. I’ve still had 9 visits today, 8 from shopping.ilovevitaly.com and 1 from forum.topic54378312.darodar.com . I’m going to try the .htaccess method and see if that helps.

        2. Ashish Prajapati

          Okay, If that works then let me know.

        3. 16.1.1.2

          Kevin

          I still get that message when I add the code. Have you updated the main post with this information?

        4. Ashish Prajapati

          Yes its okay now., may be you are doing something wrong. Many have implemented the code, it is working fine.

  16. 17

    Lisa

    Hi Ashish,

    I injected your Java Script code. I am still getting hit by edit.ilovevitaly.com. I added it as a separate url in addition to ilovely.com in Java Script but they are still hitting the site. Squarespace does not support PHP. Any suggestions. Thanks for your help with all of this. – Lisa

    Reply
    1. 17.1

      Ashish Prajapati

      Hi Lisa,
      Sometime it happens because javascript has not been loaded when the website is accessed and takes some time. But it will reduce the hits, I think so. And make sure with the characters as it is iedit.xxx . If still not then let me know I will do something. Right now I’m trying to figure out a way to block all the referral traffic referred by the same nameserver.
      Ashish

      Reply
  17. 18

    kfi

    Please help me!
    I have site visits from a shopping.ilovevitaly.com
    My site is a platform wix
    I put the code you wrote at the top of the panel login page http
    And it still does not work
    What should I do? I have lots of spam entries

    Reply
  18. 19

    [email protected]

    What is this spammer trying to achieve?

    Reply
  19. 20

    Dare

    hi Ashish I using prestashop. Which optio i can use ? And where to put a code ?

    Thanks

    Reply
    1. 20.1

      Ashish Prajapati

      Hi Dare
      First navigate to the header.tpl file . You will find in your theme folder, the theme you are using for prestashop.
      Now find head tag, in triangular brackets head .
      Add the updated php code I have written above just below the tag.
      Save the file. Or you can download and then after editing upload at the same place. Hope you know using ftp to do with files.
      Hope it works. I do not have much experience with prestashop. But as of I know this will do the work.
      – Ashish

      Reply
      1. 20.1.1

        Dare

        Thank you for your reply. Yes I do know how need to use FTP. I will let you know if it’s worked. Thanks again

        Reply
  20. 21

    Lisa

    Hi Ashish,

    Thank you again for working on this. We are still getting hit by iedit.ilovevitaly.com. Code is working beautifully for everything else. Like I said before Squarespace doesn’t support PHP. Here is your code that I have edited a couple of days ago. Is there anything that is incorrect? Thanks so much! – Lisa

    Reply
  21. 22

    Lisa

    I guess I didn’t it isn’t pasting the beginning and the end for some reason. It has open and closed script code at the beginning and end. Thanks

    Reply
    1. 22.1

      Ashish Prajapati

      Yes you can not comment a script. I have written to create filters in analytics if you want you can add ilovevitaly.com in exclude list. Please see this article https://geekybits.in/block-ilovevitaly-com-darodar-econom-spam-analytics-filters/

      Reply
  22. 23

    Bucky Juice

    Yes the first spikes in traffic appeared last week on thurs which just by chance coincided with some seo work i stayed up for 3 nights doing with my site. Then i looked into the ‘traffic’. darodar, econom.co. lumb.co?, i lovevitaly, edit.ilovevitaly, shopping.ilovevitaly

    Blocking russian visitors may not harm your genuine traffic, but it looks as though vitaly launches from non-russian servers, chech you’re traffic’s location source

    Ashish, thankyou for your hard work on this. I entered the codes into my header.php file, the php, and then then the java as that seemed to be the right fit for existing header code. Should i have entered it into htaccess? and for wordpress the php is definitely the one i want?

    Shopping .ilovevitaly is todays referrer spam headache from mr Popov

    Reply
  23. 24

    Bucky Juice

    Can I bounce him to alibaba?? :D

    Reply
    1. 24.1

      Ashish Prajapati

      :D you can. Thank you.

      Reply
  24. 25

    Gwen

    Hi Ashish,

    Thanks for working on putting this code together. Unfortunately, when I put in the updated one, my site won’t load at all. What am I doing wrong? I’m definitely not the smartest when it comes to web to stuff, but I inserted it the code underneath “” in my header.php. I hope you can shed some insight, thanks very much :)

    Gwen

    Reply
    1. 25.1

      Ashish Prajapati

      You need to add the code as it is after head tag , inside the header.php of your current theme.

      Reply
      1. 25.1.1

        Gwen

        Yup, I did that, and nothing. Spam bots remain…

        Reply
        1. 25.1.1.1

          Ashish Prajapati

          Then please use the analytics filters.

  25. 26

    Nitin

    Hi Ashish, thanks for posting this. I am not a coder so asking a basic question. My site is built on PHP and use Java Script. So what I am doing is putting the Java script code you mentioned at the top of the header.php file and also just after
    java script here
    meta tags here..
    etc…
    I am not sure if i am doing it right. Could you please explain this in a bit of a layman language, I will highly appreciate it. Thanks,

    Reply
  26. 27

    Jen

    Thanks so much for this information! I was going crazy trying to track back how my site was being linked from these other sites not realizing they were spam. Priceg.com is another to add to the list! And Ilovevitaly has .co and .com versions.

    Reply
  27. 28

    Imad

    Hi,
    I tested both the .htaccess and also the javascript and also both together… it doesn’t work still I get visit from blackhatworth.com

    Reply
  28. 29

    Ondrej Brablc

    The spam traffic does not hit your server at all. They simply fool Google Analytics to think there was such traffic. It has wrong impact on your bounce rate (only on Google Analytics) and it is shame that Google is not fighting those spammers on their own. They are doing this in order to make you visit their page. You can block them in GA manually via filters “traffic from the ISP domain” or all together using https://plus.google.com/+GoogleAnalytics/posts/2tJ79CkfnZk (however, the later does not seem to catch new domains eagerly).

    Reply
  29. 30

    Muslih

    hi I’m sorry if my english bad :( . I have question about put javascript code in blog. Where I must put the code. in under head or between head …… thanks :) if between head…../head so I can put them above ?

    Reply
    1. 30.1

      Ashish Prajapati

      You can put the code anywhere after head and before /head

      Reply
      1. 30.1.1

        Muslih

        thank’s Ashish :)

        Reply

Leave a Reply

Your email address will not be published. Required fields are marked *


*

Recent Comments

Copyright © 2014 Geekybits. All rights reserved.