open All Channels
seplocked EVE Technology Lab
blankseplocked Open a site in EVE only
This thread is older than 90 days and has been locked due to inactivity.

Author Topic

Hiigara Soban
Posted - 2011.07.21 00:13:00 - [1]

Apologies if I'm not the first to ask... the search function does not appear to be working for some odd reason.

I am still a noob with it comes to web coding but I know enough to figure out a basic site I'm developing. One thing I don't know how to do however is make it so that the only way a visitor can access the site is via the IGB. If they try to visit it outside of EVE, I want a basic page to display that says it must be viewed within EVE. And when viewing in the IGB, I want it to request that the site be trusted before a visitor gains access.

How would I go about doing this? If there's a basic PHP script I can use that would be preferable.

Somerset Mahm
Somer's Omnibus Exploration and Reclamation
Cognitive Distortion
Posted - 2011.07.21 01:22:00 - [2]

Edited by: Somerset Mahm on 21/07/2011 01:22:25
Because of the way headers work, this is very easy to spoof. You really can't trust that a site is being viewed in the IGB. If you really want to limit it for convenience's sake, check

Johnathan Roark
The Graduates
Morsus Mihi
Posted - 2011.07.22 03:14:00 - [3]

in php, all the headers would be under the superglobal $_SERVER, to check if they are using the eve browser, you would need to check for the user agent, most use a regex to look for eve in the user agent (browser type). There was at least one thread about how to do this when the browser came out, I suggest using eve search to find it. As far as requesting trust, which means they want to send additional info to you, there is a javascript call: IGB Javascript Methods


This thread is older than 90 days and has been locked due to inactivity.


The new forums are live

Please adjust your bookmarks to

These forums are archived and read-only