dns - Getting a forwarded URL from thousands of different domains in Google App Engine -


i asked question before, cannot account details back, i'm asking again:

i have series of different domain names point (via url forwarding domain host) google app engine application reads forwarding url is. if domain typed in original xyz.com, when forwarded application, can return original domain name was. i'm using python variant. how best can without coding each , every variant?

so example might have aaa.com , bbb.com , ccc.com should point same appspotdomain, , wish somehow determine referring url was. have thousands of domains , have url forwarding set-up. unless put in header there smart way pull out referring url. have tried os.environ["server_name"] route gives app-engine domain.

try

os.environ['http_referer']  

or

self.request.headers['referer'] 

be careful though, might not available.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -