Link Kontrol Hack (Boardunuzdaki Linkleri REFERARSIZ yönlendirme)

Son güncelleme: 17.12.2007 08:14
  • Boardunuzdaki Linkleri, Referer sil Sayfasin'dan yani www.anonym.to dan Linklere yönlendiriyor,
    bu sayede karsi taraftaki Sitede kimse sizin Adresinizden gelindigini görmiyor
    Anonym yönleniyor o Sayfaya......




    acp/lib/class_parse.php AC

    ARA:
    var $useCaching = 0;


    ALTINA EKLE:

    var $boardurls = array();


    2. ARA:
    function formaturl($url, $title = '', $maxwidth = 60, $width1 = 40, $width2 = -15) {
    if (!wbb_trim($title)) {
    $title = rehtmlconverter($url);
    if (!preg_match("/[a-z]:\/\//si", $url)) $url = "http://$url";
    if ($this->cuturls == 1 && wbb_strlen($title) > $maxwidth) $title = wbb_substr($title, 0, $width1)."...".wbb_substr($title, $width2);
    return "<a href=\"$url\" target=\"_blank\">".htmlconverter($this->stripSlashes($title))."</a>";
    }
    else {
    if (!preg_match("/[a-z]:\/\//si", $url)) $url = "http://$url";
    return "<a href=\"$url\" target=\"_self\">".$title."</a>";
    }
    }


    BUNUN ILE DEGISTIR
    function formaturl($url, $title = '', $maxwidth = 60, $width1 = 40, $width2 = -15) {
    global $boardurls;
    $test = str_replace("http://", "", $boardurls);
    $test = preg_replace('!\/(.*)![/swf2][swf3]', $test);
    $this->boardurls = explode("\n",$test);
    if (!wbb_trim($title)) {
    $title = rehtmlconverter($url);
    if (!preg_match("/[a-z]:\/\//si", $url)) $url = "http://$url";
    $host = parse_url($url);
    $host = $host['host'];
    if ($this->cuturls == 1 && wbb_strlen($title) > $maxwidth) $title = wbb_substr($title, 0, $width1)."...".wbb_substr($title, $width2);
    if (in_array($host, $this->boardurls)) {
    return "<a href=\"$url\" target=\"_blank\">".htmlconverter(str_replace("\\\"", "\"", $title))."</a>";
    } else {
    return "<a href=\"http://www.anonym.to/?".urlencode($url)."\" target=\"_blank\">".htmlconverter(str_replace("\\\"", "\"", $title))."</a>";
    }

    }
    else {
    if (!preg_match("/[a-z]:\/\//si", $url)) $url = "http://$url";
    $host = parse_url($url);
    $host = $host['host'];
    if (in_array($host, $this->boardurls)) {
    return "<a href=\"$url\" target=\"_blank\">".$title."</a>";
    } else {
    return "<a href=\"http://www.anonym.to/?".urlencode($url)."\" target=\"_blank\">".$title."</a>";
    }
    }
    }
#18.01.2007 23:04 0 0 0
  • teşekkürler
#11.11.2007 23:52 0 0 0
  • tesekkürler
#17.12.2007 08:14 0 0 0