how to block traffic from one web site...

Discussion in 'Black Hat SEO Tools' started by kkvsam, Nov 20, 2009.

  1. kkvsam

    kkvsam Senior Member

    Joined:
    Oct 11, 2009
    Messages:
    942
    Likes Received:
    570
    Occupation:
    SYS ADMIN
    Home Page:
    Hey ,

    I immediately need help.I need to block traffic from one web site .Can you tell me how to do it or redirect to another site?
     
    • Thanks Thanks x 1
  2. pavan

    pavan Elite Member

    Joined:
    Mar 30, 2008
    Messages:
    1,819
    Likes Received:
    457
    u can do it if u know php
    I dnt have the exact code but
    edit ur index file
    and check the referer
    if its = domain.com (that you want to block)
    redirect it to google.com

    somewhat like this

    Code:
    $referer = $_SERVER['domain.com'];
     
  3. kkvsam

    kkvsam Senior Member

    Joined:
    Oct 11, 2009
    Messages:
    942
    Likes Received:
    570
    Occupation:
    SYS ADMIN
    Home Page:
    I have blogger site
     
  4. gfawkes

    gfawkes Newbie

    Joined:
    Oct 13, 2008
    Messages:
    34
    Likes Received:
    7
    Occupation:
    researcher
    do you want to block page views or comments?
     
  5. kkvsam

    kkvsam Senior Member

    Joined:
    Oct 11, 2009
    Messages:
    942
    Likes Received:
    570
    Occupation:
    SYS ADMIN
    Home Page:
    all in my site
     
  6. kkvsam

    kkvsam Senior Member

    Joined:
    Oct 11, 2009
    Messages:
    942
    Likes Received:
    570
    Occupation:
    SYS ADMIN
    Home Page:
    are there any one can help me???
     
  7. AlphaTwin

    AlphaTwin Registered Member

    Joined:
    Jun 11, 2009
    Messages:
    92
    Likes Received:
    51
    On Blogger you can't enter custom PHP code.
    But you can include the following javascript in the Template:

    Code:
     
    <script>
    if   (document.referrer = "http://badpage.com") location.href = "http://www.google.com"; 
    </script>
    
     
  8. cagefighter

    cagefighter Junior Member

    Joined:
    Nov 13, 2009
    Messages:
    109
    Likes Received:
    102
    Occupation:
    Retired Professional Fighter, Now Trainer and Web
    Location:
    New York/Atlanta
    You can block the IP or the referrer in .htaccess

    Sorry starting typing that then looked up and saw Alpha post and since u dont have access to your .htaccess on the server then java is the way to go just make sure u post the java above in the <head>
     
  9. kkvsam

    kkvsam Senior Member

    Joined:
    Oct 11, 2009
    Messages:
    942
    Likes Received:
    570
    Occupation:
    SYS ADMIN
    Home Page:

    Can you explain this.and Can I redirect those traffic only.If can ,how
     
  10. kkvsam

    kkvsam Senior Member

    Joined:
    Oct 11, 2009
    Messages:
    942
    Likes Received:
    570
    Occupation:
    SYS ADMIN
    Home Page:
    any body can help me?
     
  11. justone

    justone Elite Member

    Joined:
    Oct 12, 2008
    Messages:
    1,521
    Likes Received:
    1,037
    Occupation:
    -
    Location:
    Europe
    Alpha already helped you.
    Thank him by using the thanks button and read those 3 lines of simple javascript code.
    Even as non-programmer you should be able to understand it. That's just like normal language with a few extra charaters
     
  12. lawway

    lawway Junior Member Premium Member

    Joined:
    Jul 20, 2014
    Messages:
    194
    Likes Received:
    24
    Occupation:
    EBAY & AMAZON SELLER
    Home Page:
    Try what alpha said , it will fix your prob
     
  13. seobizlink

    seobizlink Newbie

    Joined:
    Feb 23, 2015
    Messages:
    14
    Likes Received:
    0
    Block traffic through cpanel.. By adding that site ip..
     
  14. TeKn1qu3z

    TeKn1qu3z Senior Member

    Joined:
    Jul 26, 2012
    Messages:
    997
    Likes Received:
    256
    Occupation:
    Amazon FBA Guru
    Location:
    The Office
    There are so many ways to do that type of blocking, however My best method is to use Cpanel or a code i the Index file. If you are on a a platform of CMS try to use plugin if that is built.
     
  15. innosoft

    innosoft Jr. VIP Jr. VIP Premium Member

    Joined:
    Nov 25, 2008
    Messages:
    1,655
    Likes Received:
    641
    Occupation:
    Software Developer, SEO
    Location:
    Office
    Home Page:
    .htaccess is best way i guess..
     
  16. eXampL

    eXampL Power Member

    Joined:
    Jan 24, 2015
    Messages:
    515
    Likes Received:
    372
    Don't you guys think that op found a solution during the last 6 years or so?

     
  17. seocompanies

    seocompanies Newbie

    Joined:
    Feb 11, 2015
    Messages:
    25
    Likes Received:
    4
    Location:
    Phoenix Arizona
    .htaccess for sure