473,563 Members | 2,856 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Weiterleitung anhand von IP

Hallo,
ich habe hier ein Intranet welches auch von ausserhalb verfügbar ist.
Ich möchte jetzt auf der Startseite die User von intern (192.168.59.0)
auf eine bestimmte Seite und die User von extern auf eine andere Seite
leiten. Wie geht das? Vielen Dank im voraus für die Antworten.
Jul 16 '05 #1
3 3552
Janek Lünstedt wrote:
Hallo,
ich habe hier ein Intranet welches auch von ausserhalb verfügbar ist.
Ich möchte jetzt auf der Startseite die User von intern (192.168.59.0)
auf eine bestimmte Seite und die User von extern auf eine andere Seite
leiten. Wie geht das? Vielen Dank im voraus für die Antworten.


Ich meine die Server variable http_referer ist was du suchst.

/Andreas
--
Registeret Linux user #292411
Jul 16 '05 #2
nicht ganz, aber fast. schau dir mal $_SERVER['REMOTE_ADDR'] an...

'HTTP_REFERER'
The address of the page (if any) which referred the user agent to the
current page. This is set by the user agent. Not all user agents will
set this, and some provide the ability to modify HTTP_REFERER as a
feature. In short, it cannot really be trusted.

'REMOTE_ADDR'
The IP address from which the user is viewing the current page.
On Thu, 28 Aug 2003 17:32:32 +0200, Andreas Paasch
<An*****@Paasch .Net> wrote:
Janek Lünstedt wrote:
Hallo,
ich habe hier ein Intranet welches auch von ausserhalb verfügbar ist.
Ich möchte jetzt auf der Startseite die User von intern (192.168.59.0)
auf eine bestimmte Seite und die User von extern auf eine andere Seite
leiten. Wie geht das? Vielen Dank im voraus für die Antworten.


Ich meine die Server variable http_referer ist was du suchst.


Jul 16 '05 #3
Gerhard Fiedler wrote:
nicht ganz, aber fast. schau dir mal $_SERVER['REMOTE_ADDR'] an...

'HTTP_REFERER'
The address of the page (if any) which referred the user agent to the
current page. This is set by the user agent. Not all user agents will
set this, and some provide the ability to modify HTTP_REFERER as a
feature. In short, it cannot really be trusted.

'REMOTE_ADDR'
The IP address from which the user is viewing the current page.
On Thu, 28 Aug 2003 17:32:32 +0200, Andreas Paasch
<An*****@Paasch .Net> wrote:
Janek Lünstedt wrote:
Hallo,
ich habe hier ein Intranet welches auch von ausserhalb verfügbar ist.
Ich möchte jetzt auf der Startseite die User von intern (192.168.59.0)
auf eine bestimmte Seite und die User von extern auf eine andere Seite
leiten. Wie geht das? Vielen Dank im voraus für die Antworten.


Ich meine die Server variable http_referer ist was du suchst.


Ok, habe das nur kurz aus der Hand geschüttelt. Hätte OP etwas gesucht, wäre
er sicherlich auch über REMOTE_ADDR gestolpert ;-)

.... fast eine Entschuldigung ;-)

/Andreas

--
Registeret Linux user #292411
Jul 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1974
by: Doornkaat | last post by:
Hallo, wie kann ich verhindern, dass sich eine URL ändert? Beispiel: Ich habe eine Domain (zum Beispiel: www.Test1.com) mit Weiterleitung, diese Weiterleitung verlinke ich auf einen Server zum Beispiel bei www.Geocities.com/XYZ. Wie kann ich verhindern, dass sich die URL von www.Test1.com nach dem ertsen Link in www.Geocities.com/XYZ
6
7789
by: Hubert Hermanutz | last post by:
Hallo, ich möchte ein kleines Testprogramm erstellen, dass auf eine Visual C (Studio 6.0) DLL zugreift. Bevor ich damit beginne wollte ich die notwendigen Schritte, anhand eines Beispiels nachvollziehen. (http://www.codeproject.com/useritems/interop.asp?target=dll%7Cimport). Im Beispiel wird über das Attribute DllImport gearbeitet: ...
4
1364
by: Sahil Malik | last post by:
Lets say .. I get a string .. "System.Windows.Forms.TextBox" Can I instantiate an instance of that .. given that the ONLY information I have is that string above i.e. classname? To make things easy, such a classname is in GAC. - Sahil Malik http://codebetter.com/blogs/sahil.malik/
3
1032
by: Volker Jobst | last post by:
Hi, I have several forms in my application which are all inherited from System.Windows.Forms.Form. Now I want to write one(!) function which gets three parameters: Sub OpenForm(frm as Class, userid As Integer, permission As Integer) If CheckPermission(userid , permission) Then Dim temp As frm = New frm frm.ShowDialog()
6
10298
by: Mamatha | last post by:
Hi I have an application in C#.net,my application displays the video file.The file is in AVI format,now i want to change this AVI file into wmv file.How can i do this? Is it possible?Please give me any releated websites or any source code etc. If you know the solution please let meknow Thanks in advance.
5
1323
by: Bechtle | last post by:
Hi googlers I'm creating a portal on MS Office Portal Server. Unfortunaterly there's no way to open a link of the navigation in a new window. Now I'm trying to create a homepage with a webpart which contains a forwarding to a homepage. The page has to be opened in a new window. Unfortunately I don't know JavaScript, please help me :-)
3
1612
by: Bechtle | last post by:
Hi googlers I'm creating a portal on MS Office Portal Server. Unfortunaterly there's no way to open a link of the navigation in a new window. Now I'm trying to create a homepage with a webpart which contains a forwarding to a homepage. The page has to be opened in a new window. Unfortunately I don't know JavaScript, please help me :-)
5
2489
by: Matthias Pieroth | last post by:
Hi NG, kennt jemand von Euch einen WebService oder anderen Online-Dienst, mit dem man anhand einer plz die zugehörige Stadt finden kann? Danke und Gruß, -- Matthias Pieroth www.codegod.de - The Page for .NET-developers
0
2864
by: sdgvfwe | last post by:
samba domain controller web hosting gratis eigene domain com domain ueberpruefen web site de + + + http://jhku.net/DOMAINS-KOSTENLOS/ http://jhku.net/DOMAINS-KOSTENLOS/ http://jhku.net/DOMAINS-KOSTENLOS/ http://jhku.net/DOMAINS-KOSTENLOS/
0
7665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7642
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.