What is the ref attack? Solution.

Discussion in 'Site & Server Administration' started by deli-divane, Mar 27, 2009.

  1. #1
    English is not very good but as I'll explain with. I hope I can explain. :rolleyes:

    Ref What is it?
    These rows of fashion sites such as the tick to get over the attack are Backlink.

    Ref attack What the loss to your site?
    Ref attacks damage your site's sandbox 'to a key, sort of filter to fall to fall or cause At keywords.

    And in the search results list your site? Ref = spamsite.com extension allows the link to your site. sample (website.com /? ref = spamsite.com) or (wesite.com / oyun.php /? ref = spamsite.com) similarly

    Google bots index your site to spam the site link on your site /? Ref = spamsite.com page will have been created and can not get this link on your site, you prune your site - are rated ..

    In general, instant messaging, games, forums, adult sites, wordpress-based sites will receive a portion of this event.

    Google has my site Is this kind of index?

    This type of spam links to your site in search results, you can see. For this purpose it is enough to search google in the following manner.

    site:website.com inurl:ref=
    Code (markup):
    Sample:
    http://www.google.com.tr/search?hl=tr&q=site%3Adigitalpoint.com+inurl%3Aref%3D&btnG=Google%27da+Ara&meta=
    Code (markup):
    Yes, results, grave ref as to say How do I delete incoming connections.
    Solution: Ref index of links to the main connection routing. Connection and to protect them from attacks ref index can make the following recommendations.

    First solution (path) .htaccess

    RewriteEngine on
    # no spam
    RewriteCond %{THE_REQUEST} \?(ref=.*)?\ HTTP [NC]
    RewriteRule .? http://www.yourwebsite.com%{REQUEST_URI}? [R=301,L] 
    Code (markup):
    Second solution (path) php

    list($adres2) = explode("?ref", $_SERVER['REQUEST_URI']);
    $address = "http://".$_SERVER['SERVER_NAME'].$address2;
    
    if (eregi('ref=', $_SERVER['REQUEST_URI'])) {
    header( "HTTP/1.1 301 Moved Permanently" );
    header("Location: ".$address);
    } 
    Code (markup):
    Third Solution (path) asp

    <%On error Resume Next
    set strURL = Request.ServerVariables("QUERY_STRING")
    section = split(strURL,"/")
    section2= split(section(0),"=")
    page=section2(2)
    
    
    if not page="" then
    site="http://www.yourwebsite.com"
    Response.Write("<script>"&VbCrlf)
    Response.Write("document.location.href='"&site&"'; "&VbCrlf)
    Response.Write("</script>"&VbCrlf)
    Response.End
    end if%> 
    Code (markup):
    Fourth Solution (path) robots.txt

    User-agent: *
    Disallow: /*?ref=
    Code (markup):
    Proportional to the speed of your site index ref spam links from the Google index within 7-10 days will be deleted.

    Do not tell sorry :(
     
    deli-divane, Mar 27, 2009 IP