Technical Discussion
  >> Web Design / HTML / Web hosting Forum


Register (or login) on our website and you will not see this ad.


These posts have been archived and can no longer be replied to or modified.
  Print Thread
Standard User deleted
(deleted) Tue 18-Aug-09 23:15:15
Print Post

HTTP-Referrer spoofing


[link to this post]
 
Nothing dodgy going on here, but I'm currently designing a new site which uses the Google maps API. When you sign up for an API key, it registers to a web address that you specify, but I'm not ready to upload this yet but Google API wont let me see the fruits of my labour unless the request comes from the domain that is registered to the key.
So, is it possible (in php or javascript) to spoof the domain name that is passed onto Google so the API thinks it's fine and will show me the map working?
Standard User deleted
(deleted) Tue 18-Aug-09 23:37:08
Print Post

Re: HTTP-Referrer spoofing


[re: deleted] [link to this post]
 
register the key under http://localhost.
Standard User deleted
(deleted) Wed 19-Aug-09 00:03:54
Print Post

Re: HTTP-Referrer spoofing


[re: deleted] [link to this post]
 
No good, because I then need to change the key when it's uploaded to the web, and since I won't be around to do that I need another option...


Register (or login) on our website and you will not see this ad.

Standard User deleted
(deleted) Wed 19-Aug-09 00:08:15
Print Post

Re: HTTP-Referrer spoofing


[re: deleted] [link to this post]
 
http://groups.google.com/group/Google-Maps-API/brows...

If you switch to APIv2, then the API key checking is switched off when
you preview your page. You can just double-click on your html file to
test it.

Use &v=2 in the line that loads the API.
Standard User deleted
(deleted) Wed 19-Aug-09 00:20:15
Print Post

Re: HTTP-Referrer spoofing


[re: deleted] [link to this post]
 
what sort of site are you making out of interest?
Standard User deleted
(deleted) Wed 19-Aug-09 00:31:59
Print Post

Re: HTTP-Referrer spoofing


[re: deleted] [link to this post]
 
It's the website for the school I work for.
Standard User deleted
(deleted) Wed 19-Aug-09 00:34:32
Print Post

Re: HTTP-Referrer spoofing


[re: deleted] [link to this post]
 
I've managed to get it working now, turns out google allows it to work from http://localhost, but not virtual hosts. So a quick change of url has allowed it to work, unfortunately browsing to http:/.localhost screws up my relative links and includes, so I now need to mess around with htaccess to get it to work fully tongue
Standard User james0123
(newbie) Fri 21-Aug-09 11:30:23
Print Post

Re: HTTP-Referrer spoofing


[re: deleted] [link to this post]
 
Thanks for giving information.

  Print Thread

Jump to