Is it possible...

MGDesignsMGDesigns AdminVPS - Virtual Prince of the Server
to redirect bad referrers back to where they came from? If so what would be the best language to use?

For instance lets say blah.com is linking to twaddle.net, but twaddle.net doesn't wish blah.com to do so due to theft from site and using individual IP banning via .htaccess doesn't work due to resetting of IP etc

Thanks in advance! :D

Moddy
A cynic is a person who when smells flowers looks around for a coffin! :rolleyes:
-
ModGirl Design
My ArtWanted Portfolio
Renderosity Gallery

Comments

  • PythonPython Forum Leader The Royal RAM
    Yeah this can be done in PHP and a number of other languages most probably. Heres the PHP version...


    [PHP]<?php
    $ref = getenv('HTTP_REFERER');

    if($ref == "http://www.blah.com";)
    {
    die("You are not allowed to visit this site");
    }
    ?>[/PHP]

    I think that'll do it anyway...

    The Royal Ram

  • MGDesignsMGDesigns Admin VPS - Virtual Prince of the Server
    Genius! Thanks Python :D
    A cynic is a person who when smells flowers looks around for a coffin! :rolleyes:
    -
    ModGirl Design
    My ArtWanted Portfolio
    Renderosity Gallery
  • PythonPython Forum Leader The Royal RAM
    No problem :D

    The Royal Ram

Sign In or Register to comment.