Seite 1 von 1

stop direct linking to websites hack

Verfasst: 03.05.2008 18:39
von christin-e
Warum funktioniert dieser Hack nicht bei mir?
Nach Einbau sind leider keine Änderungen sichtbar!

Code: Alles auswählen

#########################################################
#########################################################
##          This hack was made to help stop            ##
##             direct linking to websites              ##
#########################################################
#########################################################
##		    MAKE BACKUPS!!		       ##
##		    MAKE BACKUPS!!		       ##
## Installation Level: Easy			       ##
## Installation Time: 5 minutes			       ##
## Files to edit: 1				       ##
##	bbcode.php				       ##
##						       ##
#########################################################
##Author Note:                                         ##
##	If you need any help at all, contact           ##
##	me at jt6141@gmail.com or at legacy-rpg.com    ##
#########################################################

#
#-----[ OPEN ]---------------------------------------
#
open includes/bbcode.php

#
#-----[ FIND ]---------------------------------------
#(line 627)
find $ret = preg_replace("#(^|[\n ])([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);

#
#-----[ REPLACE WITH ]-------------------------------
#
replace with $ret = preg_replace("#(^|[\n ])([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"http://www.anonym.to/?\\2\" target=\"_blank\">\\2</a>", $ret);

#
#-----[ FIND ]---------------------------------------
#(line 633)
find $ret = preg_replace("#(^|[\n ])((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $ret);

#
#-----[ REPLACE WITH ]-------------------------------
#
replace with $ret = preg_replace("#(^|[\n ])((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"http://www.anonym.to/?http://\\2\" target=\"_blank\">\\2</a>", $ret);

#
#-----[ FIND ]---------------------------------------
#(line 653)
find $text = preg_replace("#<!-- BBCode auto-link start --><a href=\"(.*?)\" target=\"_blank\">.*?</a><!-- BBCode auto-link end -->#i", "\\1", $text);

#
#-----[ REPLACE WITH ]-------------------------------
#
replace with $text = preg_replace("#<!-- BBCode auto-link start --><a href=\"http://www.anonym.to/?(.*?)\" target=\"_blank\">.*?</a><!-- BBCode auto-link end -->#i", "\\1", $text);

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

Verfasst: 03.05.2008 19:06
von tts
Viel zu sehen gibts da nicht. Außer das bei nem Klick auf nen Link kurz anonym.to auftaucht und es dann direkt zu gewünschten Seite weiter geht.

Verfasst: 03.05.2008 19:35
von christin-e
Das ja nicht so interessant dann :roll:
Gibt es einen Hack der die externen Links anders darstellt??

Verfasst: 04.05.2008 19:50
von christin-e
Ich weiß leider auch nicht wonach ich Suchen sollte, :roll:
mit dem man die externen Forenlinks verändern kann.