Current location: Hot Scripts Forums » Programming Languages » PHP » if ($url == '<url>'); {


if ($url == '<url>'); {

Reply
  #1 (permalink)  
Old 11-05-04, 03:34 PM
ChaosKiller ChaosKiller is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation if ($url == '<url>'); {

Can anyone help me with a script that checks what url is typed and redirects if it is a specific url? couldn't find any script that does this.

so if the typed in url is: http://downloads.streetuplink.tk it will redirect to http://chaoskiller.slackhat.com/Stre...b/pafiledb.php

-Chaos Killer

Last edited by ChaosKiller; 11-05-04 at 03:36 PM.
Reply With Quote
  #2 (permalink)  
Old 11-05-04, 04:32 PM
4n7hr4x 4n7hr4x is offline
Banned
 
Join Date: Jun 2004
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
make index.php on first line wiht this in it:
PHP Code:

<?php

header
("Location: URL");
exit();
?>
Reply With Quote
  #3 (permalink)  
Old 11-05-04, 04:44 PM
ChaosKiller ChaosKiller is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by 4n7hr4x
make index.php on first line wiht this in it:
PHP Code:

<?php

header
("Location: URL");
exit();
?>
no not that... on .tk urls you can't select your sub-domains so I thought if the url (in the adress bar) is downloads.streetuplink.tk it would redirect to a different page. is this possible....?
Reply With Quote
  #4 (permalink)  
Old 11-05-04, 05:15 PM
Deekay Deekay is offline
Newbie Coder
 
Join Date: Oct 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
I don't believe thats possible.. it might be with .htaccess.. dont know.
Reply With Quote
  #5 (permalink)  
Old 11-05-04, 05:43 PM
4n7hr4x 4n7hr4x is offline
Banned
 
Join Date: Jun 2004
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
yeah it snot possible i dont think, 90% sure
Reply With Quote
  #6 (permalink)  
Old 11-05-04, 05:58 PM
FiRe FiRe is offline
Code Guru
 
Join Date: Oct 2004
Location: UK
Posts: 801
Thanks: 0
Thanked 0 Times in 0 Posts
<script language="JavaScript">
if (top.location != self.location)
{top.location = self.location}
</script>
__________________
Alexa Share <-- Trade virtual shares in websites with this online game.

codR.us <-- Submit and vote for your favorite code snippets with codR.us.

XEWeb.net <-- The ultimate PHP resource network.
Reply With Quote
  #7 (permalink)  
Old 11-06-04, 09:03 AM
ChaosKiller ChaosKiller is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
the problem is that <everything>.streetuplink.tk redirects to my site. I can't control the streetuplink.tk subpages so I want to make a script for index.php that redirects if the page is downloads.streetuplink.tk any thoughts...?
Reply With Quote
  #8 (permalink)  
Old 11-10-04, 12:52 PM
ChaosKiller ChaosKiller is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
fixed it:
<? if ($HTTP_REFERER == "http://downloads.streetuplink.tk" && $page == "") { print '<META HTTP-EQUIV=Refresh CONTENT="0; URL=http://chaoskiller.slackhat.com/StreetUplink/index.php?page=downloads">';
exit; }
?>
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CHMOD to 777 hbfriends PHP 10 10-27-04 09:43 PM
Trying my nervers...new user to Javascript rshelton JavaScript 5 07-09-04 01:45 PM
PHP Error Fairnie PHP 8 06-26-04 07:15 AM
Please Help me Get rid of this parse error gmjan6 PHP 5 06-19-04 12:48 AM
Disable form fields to be submitted RickyRod JavaScript 2 05-24-04 10:15 AM


All times are GMT -5. The time now is 05:12 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.