Forum Discussion
andyr0ck_5031
Jul 08, 2008Nimbostratus
Thanks, Aaron. Yes, it's the client IP we're after. The problem wasn't with this rule, it was with a 'catch-all' rule we had listening on the insecure port to redirect all traffic to the SSL port. Turnitin seems to require to connect on 80 then renegotiate to 443. I hashed together this out of your code:
when HTTP_REQUEST {
Remove the Pragma header
HTTP::header remove "Pragma"
if { ([IP::addr [IP::client_addr] equals 208.57.158.0/255.255.255.0]) } {
} else { HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
cheers,
Andy