I have a php question

springer98

Regular Member
Joined
Dec 6, 2008
Messages
211
Reaction score
251
I just got this script and was poking around inside, to see what was in it, and noticed this

Code:
<?php

if(!$_SERVER['HTTP_REFERER']){
	
header("Location: http://www.some-random-url-here.com");

and I wondered why it's there and what it might do? It's a url to a youtube video that is totally unrelated to what the script is about. The exact same line is also embedded into an image file within the same package.

I'm pretty new to php and don't have a clue why it's in there. What might happen if I change it?

If anyone can help me out, I'd appreciate it.
 
that will redirect to a url if the referrer is blank.
That means if you access it directly, you will be taken to the YT url.
 
Oh. Thanks for the quick response. I really appreciate it!
 
Back
Top