Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




Any Way To Remove Referring URL From A Click-thru?


Is there anyway to make a pass-through php file that will clear the referring URL, so the target site does not know where you came from?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Getting The Referring Url From PHP
I'm developping a PH application that needs to know the refering URL (and
the IP address) of a php script I mean the URL of a webpage that contains a
link towards my php script.
As I know the browser knows it but but I couldn't find so far a PHP function
able to preform it.

Where It Came From? Referring Page
Is there anyway to find out the referring page through PHP to dynamically create a "back" button on any page within a site?

PHP Referring URL Problem
Lets say I have a user who searches on google for blue widgets.

there URL then says -
http://www.google.com/search?hl=en&q=blue+widgets

Now they click on googles link to my website (http://www.mydomain.com)

Is it possible to code into index.php so that when the user clicks on my site link, they are taken to the specific page they want based on the referring url from google?

like in the above example, they search for "blue widgets", so the referring URL is http://www.google.com/search?hl=en&q=blue+widgets and I want them to go to my blue widgets page (ie. http://www.mydomain.com/blue-widgets).

Referring Page
how to show the referring page as a link? Something like "javascript:history.go(-1);" but not to basically refresh the page from history.

Php Redirects & Referring URL
I have a question (who doesn't!) about php redirects. I used to use HTML redirects, but they were slow and bulky. So I switched the php ones, but now I have another issue. I need a simple redirect, but I want to hide the original url. For example:

www.blah.com - and then user will click a link (php redirect page www.blah.com/redirect.php) and go to www.sales.com

I need for my traffic to look like it's coming from www.blah.com/redirect.php. But what I'm getting is www.blah.com. With the html redirects it would just show the redirection page url. Is there something I can insert into the php redirect page to make it show THAT as the referring url?

Here's an example of my php direct page:

<?php
Header('Location: http://www.sales.com');
Exit;
?>

URL Of Referring Html Document
I am using this code to retrieve the current URL:

function selfURL() {
$s = empty($_SERVER["HTTPS"]) ? ''
: ($_SERVER["HTTPS"] == "on") ? "s"
: "";
$protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? ""
: (":".$_SERVER["SERVER_PORT"]);
return
$protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];
}
function strleft($s1, $s2) {
return substr($s1, 0, strpos($s1, $s2));
}

which returns the URL of the current PHP script.

But, I would like it to return the URL of the html page that preceeded
this script.

I mean, I have a some html pages with some photos. I have a form that
allows users to enter an email address that will then send the link of
that html page to the email address used.

When I use the above it only shows the address of the page that
executed the command, not the original html document.

BUG: Referring To A Class Function
This is a "namespace" problem with "::". Is there an official place I
can report php bugs? I'm new to PHP (and soon to be leaving it):

class SomeClass {
function dostuff($ar) {
uasort($ar, 'SomeClass::somesort');
}

function somesort($a,$b) {<-- never gets called
echo "Yes I got called"; //<-- never happens
if ($a[order] == $b[order]) { return 0;}
if ($a[order] < $b[order]) { return -1;};
if ($a[order] > $b[order]) { return 1;};
}
}
SomeClass::dostuff($ar); //put whatever you want in the $ar array to
test

In the line "uasort($ar, 'SomeClass::somesort');",
'SomeClass::somesort' isn't recognized by PHP. I also tried just
'somesort', no go.

I was trying to use a class as a substitute for PHP's lack of
namespaces. (Which btw is the reason I'm bailing out of php.)
Because of this bug I have to put my sorting funct into the global
space, which is ridiculous.

Referring To An Object Member
I have an object ($obj) that contains members 'sunday', 'monday',
'tuesday', 'wednesday', etc. I can refer to them in my code as
$obj->sunday, etc. But I want to refer to these members in a loop, such as:

$dow = array('sunday','monday','tuesday',...);

foreach ($dow as $day) {
print $obj->$day;
}

But this syntax does not work. I tried eval() and a few other things
with {}, but all failed.

How Would I Capture The Url Of The Referring Web Page?
How would I capture the url of the referring web page? I want to be able to write an If else statement based off of a certain url. basically if someone comes from a certain url I want the script to do one thing and if they come from another url i want the script to do something else.

Referring Page After Login
I am using Dreamweaver's built in authorization code (with modifications to make it actually work) and php5 and I would like the user to go back to the referring page after they login. In other words, a user will read a webpage that says "read more". When they click that it will take them to that page but if they are not already logged in they will go to the login page first. After they log in I need them to be taken to the page that they were headed to. Right now it's taking them to the "  $MM_redirectLoginSuccess = "memberarea.php"; page. Code:

Blocking Access From All But One Referring Page...
I have a subsection of my site that gets tons of hits, but my main page doesn't get that many. I know this is a simple problem to fix, but hell, I dunno.

Anyway, I want this particular page to only load up if the referring page is my homepage.... something along the lines of http-referrer=x or die?

How To Get Search Keywords From A Referring Page
I would like to use PHP to extract the search keywords from a referring page. For example, if someone searches on Google for 'fancy widgets' and clicks through to my site, I would like to be able to extract those keywords and store them in a MySQL database. It's like the way awstats shows the keywords being searched to get to my site.

For example,
http://www.google.com/search?q=fancy%20widgets

and I would like to extract the words 'toddler toys'.

Naming Conventions In Php Referring To Mysql Databases
I am developing on a windows machine, and hosting on a linux server.
I have written my php code using table names like siteStats and column
names like userStatus. I have just realized the conflict this creates
when uploading to the live server; table siteStats is not recognized,
but table sitestats is recognized. The solution seems to be:

1 - change all table names (and other case-sensitive names) to an all-
lowercase convention, i.e. siteStats =sitestats or site_stats;
2 - change table names on live version, in the database itself, to
lowerUpper format.

I really like using the lowerUpper format because I find it annoying
to type underscores all the time, and lowerlower becomes hard to
read. However, it is more important to me that my live and local
scripts are identical.

Does anyone else use the lowerUpper format successfully for things
like mySql table names, when developing on windows and hosting on
linux?

Click Counting
I have a links directory that I would like to count the number of times a link is clicked.

I currently have all the links being displayed by pulling the links data from a MySQL table. I have added the a 'Count' field to the existing table. The table contains the following fields: LinkID, Category, Name, URL, Description, Count.

My question is is it possible to count the clicks once the links data has been printed to HTML? I am thinking of the PHP equivalent of OnClick Count = Count + 1. Or have I got the whole logic back to front?

Set Vars On Click
I just wonder if itspossible to set an var when u click on a link. For example: When i click on www.test.com i want to make $test contain something.

Assign Value On Click
is there a way to change the value of a variable when a hyperlink is clicked? like im include()ing a variable $content. and when you click it changes from URL to links or whatever?

Click Tracking
I have a portal where people advertise and on they are allowed to display their website addresses so that people that visit the site can go directly from their site from my site.

Do you know of a class or script that would be able to monitor when someone visits an advertisers site i.e. records the click as they go across to the advertisers website.

I could build this myself, but thought that there may be a class or script that would do this already. (Would like this to be stored on a MySQL database opposed to a text fil.

Banner Click Thru
I'm looking for an easy way to keep track of click thrus on a banner. Can anyone point me in the general direction of what I'd have to do code wise?

Click Counter
Anyone know about a script/code that count how many times a link have been clicked..
I have tried hotscripts.com, phpbank.net and so on.. Only found scripts that costs money or uses a MySQL database.

I need one with no needs for MySQL. It should look like something like this: [ Download ] Been downloaded (NUMBER) times.Anyone know about a simple script to do that?

Check Click
I have a page and a sponsor. Every time a user click on a banner from our
sponsor their webpage is opened. I'd like to reward these users, but how to
check who clicked on a banner. I can't do anything on sponsor's webpage?

Click Counter
i want to make a link counter, i mean, when somebody click on a link in my web, this click is archives. Code:

Single Click Downloads
How do I ptogram with PHP a link that when clicked starts downloading the file? Basically I dont want to link directly as I want to take note of the number of times a file is downloaded so I need some way of sending the file back to the browser after I have done some housekeeping.

Disable Right Click In Opera
In my website there is requirement to disable rightclick.
I am providing the code and it is working in I.E ,Netscape and
Mozilla.But not working in Opera browser.
My code is
<body oncontextmenu='return false;'>
The above single line code is working very fine in the above browsers
not in Opera.

MySql Dump On A Click
I am developing a system, in which user or power user is allowed to take the database backup, is there ne procedure, in which, on just click,,, the dump of mysql is created for backup.

Inserting Into Two Tables At One Click
I want to insert some data into 2 of my tables through my PHP form.How can i do it?
For example, field1, field2 should be inserted into table 1 and field3, field4 should be inserted into table 2. I'm able to insert into one table but not into 2 tables simultaneously.

Link Click Detection?
How might one detect if someone clicked on a hyperkink at your website,
so it can be logged in a database? This would have to be done before
the browser redirects.

Referrer/click Tracking?
Anyone know of a good referrer/click tracker program? I've checked hotscripts.com, freshmeat.net, and php.resourceindex.com but didn't find anything all that great. There seem to be a ton of programs to track outgoing links, but I was looking for something that is used to track incoming links to my site (i.e. if I put a link up on some site it would go to something like http://example.com/click.php?id=1 then I would know how many people came to my site through that one).

I don't need to know how to make one of these, that's easy, but I'm too busy to be reinventing the wheel right now.

User Feedback In One Click
I have seen this on google and MSN. Google groups has star on which if
you click the topic becomes stared... MSN has 5 stars to get feedback
from user for giving rank to the pages. Sorry I don't remember on which
page they have this feature but I am very sure they have this.

I also require it for page rank, I was wondering how do they do it. I
am sure MSN is not storing the data on the clients machine.

I want if users click on 3rd stat then the 3 should go inside my mySql
DB and at the same time I don't want them to go to some other page or
open a pop up or something,

Where Do They Go? How Can I Gather Click Info In PHP
I was wondering if it is possible to find out what people click on, using
PHP.

For example, I have a PHP page with an email link and some third party links
(e.g. www.someone-else.com). I want to know where people go.

My own solution would be to make the link not to an email or a third-party
website, but to another page along the lines of

<?php
//check out where it came from and where it is going
//write info to database
header = {where it should be going}

?>

I am not sure if you can do this with email, but I am also wondering if
there is an easier/smarter way to do this.

Click To Send This By Email
In this forum there is a option called click here to send this to a friend by email, I want to know how they pass the url to a different page?

Right-click Menu Change
Is there a possibility to change/define what will appear in menu after
right-clicking on text input box ?
If not - how to do this ?



Detect Mouse Click
Is it possible to detect where on a page someone clicks with PHP? If so, can you point me in the right direction?

Form Button Click Itself.
is it possible that  on a php script that i can make the form button click itself.

so i have a button that when a certain argument happens i want to click on itself thus resetting itself and doing the php script associated with the button being clicked the php is on a form on php self.  know it sounds strange but i have some coding that needs to reset itself and only does that when the button is clicked just want a work around. failing that is it possible to use jave to achive this.

Find New Record On Click
I want to make a next and a previous link with my data. here is my query:

<?php $sql = "SELECT DISTINCT pdp.PackageId, p.PackageType 
                            FROM productpackaging pdp, packaging p 
                            WHERE pdp.ProductId =2 
                            AND pdp.PackageId = p.PackageId";
$result = mysql_query($sql);

How do I write the code to get next or get previous??

Php Insert Into A Textbox On Click
I have a textbox, where a user can write out a newsletter type deal.

I also have a list of products, that when the user click on it, it grabs all the info from the database and neatly generates html for the product.

I can deal with grabbing from the database and formatting, but i need some help with on click insert into the text box.

Refresh The Page On Click
I'm trying to find a way to refresh the page upon the clicking of a link that does not use header's.

reason being there isnt anyway i can get the statement up above all the output.

The only way ive found of doing something similar is:

<META HTTP-EQUIV=Refresh CONTENT="3; mypage.php">
Which just refreshes the page every 3 seconds.

Not really suitable to be honest.

Can anyone think of another way to handle this?

Disable Right-click On Mouse
Is there a php script that wil disable the right-click on mouse or maybe disable the copy and paste feature of the browser?

because i have a client, wherein he wants to prevent public viewing his website from copying his website content?

Left Mouse Click To Download
I need to allow user to download, ex: a movie file, using left mouse click. How can I do it?

Simulation Of Left Mouse Click
I was looking for this script for some time now
But still didmf fined a salution.
I need a script that simulates a left mouse click on specified area of
the screen when the page is loaded.

Outbound Link Click Tracking
Does anyone know of any tutorials on how to write a script that will allow me to track clicks of outbound links on my site? Or any advice on the best way to do this?

Ideally I'd like to have a record written into a database each time an outbound link is clicked. I'd like to then be ablt to query the database and pull a report that shows the number of times each link was clicked during a time period.

: In Netscape Emulate The IE Object.CLICK();
In IE I can send a click event to a form filed with objectName.click();
Is there a way to do this in other browsers like Netscape 6+ and Opera,
etc...?

Change The Web Page Contents On Click
I want to sort the data displayed on web page on click of button. I have a combo in which all user have to select the sort order in which he wants to see the data...(The combo box or drop down box contains values "Name, Department Salary and Grade")

The user select the order (say name) by clicking the combo box or drop down box. The moment the user releases the combo or drop down box, I want to refresh the page with new sort order.

Unlinking File After Click On Link
I run a script that zips some files, after it's been zipped the client get the link to the file so that he can download it.

I want to unlink the zipped file after the client has clicked on the link. This sounds easy but I don't know how to perform an action from a link ie. <a href = ../path_to_zipped_file/zipped_file.zip>download here</a>

After they click that link I want to unlink ../path_to_zipped_file/zipped_file.zip
any ideas?

Registration And Tracking Click-thru's
My problem:
I have a form that captures information about our corporate site and then I insert it into a MySQL DB. The problem starts when I need to track how many users have come back after registering to view a demo we put up.

Having searched on google I saw that this thread had somethign similar to what I need, so I decided to post to this group. Can somebody please help me out here.... Am fighting a losing battle with my deadline..

Click A Hyperlink To Query MYSQL W/PHP - How?
Like so many questions this involves MYSQL and the PHP (or Perl) layer.

I'm going to have html in text fields and there's going to be what
normally would be an internal link to another place in the same
document. But in this case,
Code:

<a href="#futherdown">next title</a>

is not in the html document. When a user clicks this link I want to
query the DB and append/render the queried record on the I guess
existing (refreshed) page. What's a strategy to make a hyperlink query
via PHP?

Open Window On Button Click
in a form, here's what I want to do :

<input type=button onclick= (???)

is it possible to open a pop-up window with a specified url without
using javascript ?

Calling Php Function On Click Of A Hyperlink
How to call a php function on click of a hyperlink?

C Alling A Function With A Button Click
im relativly new to PHP but loving it - its fantastic isnt it (reminds me a
lot of BASIC on steroids)

my question is this

how do i call a function from a button using php?

Adding Multiple Entries With One Click
I've written a form in html and use php to process it to my database.  What I want to do is make it so that a person can choose a number and then by clicking submit it will create an amount of db entries that corresponds to the number that they chose. 


Copyright © 2005-08 www.BigResource.com, All rights reserved