External URL's are pointing to my own site - help

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
thefandango
Posts: 3
Joined: Fri Jan 09, 2009 4:49 pm

External URL's are pointing to my own site - help

Post by thefandango »

Script URL: http://www.tabletopreview.com/auctions.php
Version of script: 1.6
Hosting company: hostgator
URL of phpinfo.php: dont know
URL of session_test.php: dont know
What terms did you try when SEARCHING for a solution: go.php

Write your message below:

Hi

I have added the guestbook and am testing how it modifies to my purposes.

My problem is that when a URL is entered in a guestbook entry, the URL points internally to my site rather than externally.

For example I have a test link to www.ebay.com in an entry, but its URL structure on clicking is:

http://www.tabletopreview.com/auctions/ ... w.ebay.com

This may be an issue with the fact I have embedded the script into a smarty driven cms, but if it is possible to change the link structure (in go.php?) so it links out to the URL, any help would be appreciated.


Thanks.
Jason Temple
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello thefandango,

I don't really know why the go.php page is used but it can be bypassed by changing the gbook.php file.

Open it in a plain suitable text editor.
Find line 535 (in GBook version 1.6)

Code: Select all

echo $lang['t19'].' <a href="go.php?url='.$url.'" class="smaller">'.$url.'</a><br />';
and change it to

Code: Select all

echo $lang['t19'].' <a href="'.$url.'" class="smaller">'.$url.'</a><br />';
Also find line 972

Code: Select all

echo $lang['t19'].' <a href="go.php?url='.$url.'" class="smaller" '.$target.'>'.$url.'</a><br />';
and change it to

Code: Select all

echo $lang['t19'].' <a href="'.$url.'" class="smaller" '.$target.'>'.$url.'</a><br />';
I think this should work, but i have not tested it.

Greetings,
Henrie
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Henry already posted the fix, but just to clarify: in start this was meant as one of the things to drive spammers away (because they don't get clean links which they are after, but redirects) but this has shown to have no real effect at all, I will remove it in the next version or at least make it optional.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
thefandango
Posts: 3
Joined: Fri Jan 09, 2009 4:49 pm

Post by thefandango »

Thanks for your help guys.
Jason Temple
Post Reply