• I want to do something plain nasty. This code does not work in my index.php. Is there a plug-in?

    $name = gethostbyaddr($_SERVER[‘REMOTE_ADDR’]);
    if (stristr($name,’yandex’))
    {
    header(‘404 Not Found’);
    exit;
    }

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jtjohnston

    (@jtjohnston)

    Does anyone know of a .htaccess way of doing it it there is no plug in?

    Do you want to just ban any requests from yandex, right?

    Thread Starter jtjohnston

    (@jtjohnston)

    Basically, yes.
    I used yandex as an example.

    Thread Starter jtjohnston

    (@jtjohnston)

    I’d like to do something like bounce the person to google or some other useful place.

    Looks like some kind of new age fascism.

    Do you want redirect all requests from, let’s say, yandex, to google or somewhere else automatically? Like if someone clicked in results on yandex, got on your site, and then what? Automatically redirect to google? Without visiting your site? Or are you planning to show some message, e.g., “I accept search from Google only!”?

    Thread Starter jtjohnston

    (@jtjohnston)

    New-aged fascism? 🙂
    I simply want to redirect a visitor who comes from “yandex” for example to another URL, such as google.com.
    In PHP I would do this with $_SERVER[‘REMOTE_ADDR’]
    I attempted this in the installed index.php but it caused a server 500 error.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘redirect yandex.ru traffic’ is closed to new replies.