Post Reply 
hide referer question
Mar. 08, 2014, 12:00 PM
Post: #1
hide referer question
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.
Add Thank You Quote this message in a reply
Mar. 08, 2014, 07:13 PM
Post: #2
RE: hide referer question
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
Add Thank You Quote this message in a reply
Mar. 08, 2014, 11:16 PM
Post: #3
RE: hide referer question
(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.
Add Thank You Quote this message in a reply
Mar. 09, 2014, 12:04 AM
Post: #4
RE: hide referer question
(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.
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: