|
by: John A. Irwin |
last post by:
I'm very new to PHP and am trying to figure out how to parse out a
variable "HTTP_REFERER". My reason for this is my site was recently
"FEATURED" (sic) on a website called FARK.COM. Because of this I
received over 100,000 Hits in less then one hour and it caused my host's
server farm to crash. While I understand that I could move to a more
robust Web Host, I would rather trap any further links from FARK and
redirect them to a rejection...
|
by: deko |
last post by:
I have a page that I don't want anyone to be able to link directly to. The
page should only be accessed from gatepage.php. I tried this code, but keep
getting errors - "header info already sent", or something like that... Am I
missing something, or is there a better way to do this?
<?php
$ref = $_SERVER;
//echo $ref;
if ( $ref == 'http://www.mydomain.com/gatepage.php' )
{
|
by: F |
last post by:
Hi All
I am using Request.ServerVariables("HTTP_REFERER") to refer back in some
pages but on clint side some pages refered back and some show error page not
found.
I dont know whats wrong with code.
retstr = Request.ServerVariables("HTTP_REFERER")
if instr(1,ucase(retstr),"STEPPAGE") > 0 then
|
by: Brett |
last post by:
rf=Request.ServerVariables("HTTP_REFERER")
sv2=Request.ServerVariables("URL") & "?" & Request.ServerVariables("QUERY_STRING")
if instr(rf,"http://www.westcoast") = 1 then
'response.redirect "http://midvalleyfurniture.com" & sv2
end if
|
by: M Smith |
last post by:
On our web site we allow our members access to features hosted by another
web site. The way the other web site authenticates users is to check the
value of the HTTP_REFERER. If it comes from our Login.asp page it lets them
in. When our users login to go to the other site, they login on our site's
Login.asp page. When they click submit, our LoginCheck.asp page validates
them and does a response.redirect to the other site. In most cases...
|
|
by: Drebin |
last post by:
I posted this over at the ASP.NET group, but you guys are pretty sharp - is
this an obvious answer for anyone?? I'm really jammed up!!
---------------------------------------
I am retrofitting a central login application and want to be able to read
the Request.ServerVariables so that when they have logged
on, I can send them back to wherever they were trying to go..
If you try to load a legacy ASP app, I do this:
|
by: Drebin |
last post by:
I am retrofitting a central login application and want to be able to read
the Request.ServerVariables so that when they have logged
on, I can send them back to wherever they were trying to go..
If you try to load a legacy ASP app, I do this:
If Len(SessionID) <> 40 Then
Response.Redirect "/WAS/Default.aspx?AppCode=2400"
End If
|
by: bolatito |
last post by:
How can I make use of thisi ASP instruction in trying to restrict access to a page.
If Instr(Request.ServerVariable(HTTP_REFERER),"pagename.asp")
The pagename is the name of the page that containsn the form action.
<%
if Instr (Request.ServerVariables(HTTP_REFERER),"log") = "true" then
response.write("INVALID USER")
|
by: mrsmithq |
last post by:
I have a page that has this logic in it:
//We can call it access.php
if (!isset($_SESSION)){
header("Location:index.php");
exit();
}
//Here is the index.php
echo "<br>" . $_SERVER;
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|