The Un-Official Proxomitron Forum
hide referer question - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Proxomitron Filters (/forumdisplay.php?fid=38)
+--- Forum: Filter Help/Request (/forumdisplay.php?fid=31)
+--- Thread: hide referer question (/showthread.php?tid=2147)



hide referer question - tfit - Mar. 08, 2014 12:00 PM

Hi all,

What is the right syntax for hiding the referer and not being seen as hotlinker?
I tried:
In = FALSE
Out = TRUE
Key = "Referer: Hide where we've been (Out)"
URL = "(^($TYPE(css)|$TYPE(js)))"
Match = "*"
Replace = "http://someurl.om"

and
In = FALSE
Out = TRUE
Key = "Referer: Hide where we've been (Out)"
URL = "($TYPE(htm)"
Match = "*"
Replace = "http://someurl.com"

they don't seem to do anything.

URL = "*"
Match = "*"
obviously works, but that also means all other files are referred and i only want to refer the html or php files.


RE: hide referer question - JJoe - Mar. 08, 2014 07:13 PM

This is a request (out) header. You may not know what the type is until the server responds (in). Regardless, $TYPE() is only for Web Page Filters.

The 'out of box' Referer header filter is

Code:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "Referer: Hide where we've been (Out)"
Match = "*"
Replace = "\u"

(Mar. 08, 2014 12:00 PM)tfit Wrote:  i only want to refer the html or php files.

Code:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "Referer: Hide where we've been (Out)"
URL = "*.(htm|php)"
Match = "*"
Replace = "http://someurl.com"

or

Code:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "Referer: Hide where we've been (Out)"
URL = "[^?]++.(htm|php)"
Match = "*"
Replace = "http://someurl.com"

You will probably want to fine tune the URL Match.

HTH


RE: hide referer question - tfit - Mar. 08, 2014 11:16 PM

(Mar. 08, 2014 07:13 PM)JJoe Wrote:  This is a request (out) header. You may not know what the type is until the server responds (in). Regardless, $TYPE() is only for Web Page Filters.

The 'out of box' Referer header filter is

Code:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "Referer: Hide where we've been (Out)"
Match = "*"
Replace = "\u"

(Mar. 08, 2014 12:00 PM)tfit Wrote:  i only want to refer the html or php files.

Code:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "Referer: Hide where we've been (Out)"
URL = "*.(htm|php)"
Match = "*"
Replace = "http://someurl.com"

or

Code:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "Referer: Hide where we've been (Out)"
URL = "[^?]++.(htm|php)"
Match = "*"
Replace = "http://someurl.com"

You will probably want to fine tune the URL Match.

HTH
I loved to fune tine the URL Match if I can get it to work. Unfortunately none of the suggestions seem to have any effect. OK, while I'm typing this I notice some changes Wink I will get back to you after some further testing.


RE: hide referer question - JJoe - Mar. 09, 2014 12:04 AM

(Mar. 08, 2014 12:00 PM)tfit Wrote:  hiding the referer and not being seen as hotlinker?

(Mar. 08, 2014 12:00 PM)tfit Wrote:  i only want to refer the html or php files.

(Mar. 08, 2014 11:16 PM)tfit Wrote:  I loved to fune tine the URL Match if I can get it to work. Unfortunately none of the suggestions seem to have any effect. OK, while I'm typing this I notice some changes Wink I will get back to you after some further testing.

Are you sure you want to change the Referer for "html or php files"?
Often, hotlinking is to an object like an image. So, a server may require image requests to have appropriate Referer headers.