Block spam link and redirect 301 !

Discussion in 'Search Engine Optimization' started by sonoko125, Jun 23, 2011.

  1. #1
    I have a question. I don't know how to solve this problem at that time.
    I has built a website about tourism for 2 month. And I think that it 's not enough trust with Google.
    Nearly days, I check links to my site and realize many link from strange site and redirect from many sites. Who want to attack me ! But it 's out of my control and my ranking was out of 1000. It 's terrible !

    Can we deny all connect from another websites that use redirect 301 to my site. We only accept direct connection. Need more experience from expert who have seen this case before !
    SetEnvIfNoCase Referer ".*(blogspot).*" ban
    SetEnvIfNoCase Referer ".*(blogger).*" ban
    SetEnvIfNoCase Referer ".*(azfreeapps).*" ban
    SetEnvIfNoCase Referer ".*(sexphimsex).*" ban
    
    
    <Limit GET POST>
    order allow,deny
    deny from env=ban
    allow from all
    </Limit>
    Code (markup):
    I use this command in .htaccess. But we just only block domain by checking result on "site explore" (I think it 's very slow to check) . How can control if someone continue attacking my site by this way.


    Thanks and any answer will be appreciated !
     
    sonoko125, Jun 23, 2011 IP
  2. Ana Boks

    Ana Boks Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The Apache web server provides several way for setting up redirects.

    The most simple one is using the “Redirect” directive:

    With such a line in your .htaccess if a visitor tries to load http://www.example.com/folder, he will be redirected to http://www.example.com/newfolder.
    Recently it has been talked a lot about Permanent redirects. The good news is that you can add a status code to the Redirect directive. For example for Permanent 301 redirect you can use:

    Another useful directive is the RedirectMatch. With it you can use regular expressions in the redirect condition. For example

    This will redirect all requests to files that end with .html to the index.php file.
    There is another more powerful way to create redirects or even create transperant redirects which requires ModRewrite. We will talk about this in the next article.
     
    Ana Boks, Jun 23, 2011 IP
  3. smartyseo

    smartyseo Member

    Messages:
    164
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #3
    smartyseo, Jun 23, 2011 IP
  4. jacksamwhite

    jacksamwhite Member

    Messages:
    90
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #4
    jacksamwhite, Jun 26, 2011 IP