I have a client who wants to exclusively connect to a web site we created for them. we agreed to do this by identifying the referrer they are coming to our site with.
As they are coming from an https site, I added SSL to our site as well so I can capture the referrer (linking from https to http drops the referrer).
Could you provide some additional information on the redirect loop that you are referring?
If you are looking for a Referer “https://www.example.com” and it is redirecting to a different URL “https://www.oursite.com”, is that second URL on the same Virtual Server? If not, then how are you getting into a loop?
We cannot support https on our site so I have to redirect the traffic to http which is a different virtual server for the same site.
There I still need an irule in place as I still need to filter traffic coming to it. but once redirected from the https virtual server to the http virtual server, the referrer is dropped.
So I guess I need to add some kind of a cookie on the https irule and look for it on the http irule and allow access.
It’s a bad security practice to depend on the Referer header to verify whether a request should allowed to a web app. The referer header (and all other HTTP headers) can easily be spoofed by a malicious client. It would be much more secure to use some authentication mechanism to enforce access control. Or worst case, lock access down by source IP address.
yes, that;s true and I’m aware of this, but this is how the client wants to do this.
also, the IP option is not feasable as the site referring to me is open from everywhere to everyone, so there is no one IP or a group of IP’s I can allow.
does someone have an idea where i can find an example of how to add a cookie to a session, and how to allow access by a cookie?