Jump to content

Block forwarding URL


phpretard

Recommended Posts

It's not a matter of hiding anything. A script or a browser must explicitly set the HTTP_REFERER header for it to even have a value.

 

$_SERVER['HTTP_REFERER'] is an optional header. It can be present or not and it can be set to anything. For example, most of the web proxy scripts set it to match the domain being requested, so a request passing through such a proxy script would look like is is coming from someone who is already browsing pages on your site.

 

What sort of problem are you having that you are trying to solve?

The only information you receive about any http request is what the browser (or script) supplies when it makes the http request to your site. If 'HTTP_REFERER' is not set, then there is nothing you can do because there is no information to base a comparison on.

Nothing. How could you possibly tell if any particular visitor was just on the URL unless the visitor tells you that information when he makes the request to your page?

 

Are you having problems with actual visitors or with a script making requests to your page? What real problem are you having, and 'I am trying to block a specific site from referring traffic.' is not a problem it is what you are attempting to do.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.