Search results for 'HTTP_REFERER'. 2 post(s) found.
- 2008/01/14 How to block a connection from the certain site ?
- 2007/10/16 How to get reffering URL ?
Sometimes, you may need connection blocking from the link posted on the certain blog or site. In this case, you can block easilly by HTTP_REFERER.
Followings are the simple example blocking connection from foo.com posted content. But following example allows user to connect to the website directly. For instance, user can connect to http://foo.com when user put url on the browser, but in case of clicking link, the site can know where the connection comes from.
<?
// connection blocking Example
// Programmed 2008 by Kurapa Chunun Kang (kurapa@kurapa.com)
if (ereg('foo.com', $_SERVER['HTTP_REFERER']))
{
?><script language=javascript>self.location='http://xxx.com';</script><?
exit;
}
.
.
.
?>
// connection blocking Example
// Programmed 2008 by Kurapa Chunun Kang (kurapa@kurapa.com)
if (ereg('foo.com', $_SERVER['HTTP_REFERER']))
{
?><script language=javascript>self.location='http://xxx.com';</script><?
exit;
}
.
.
.
?>
Another posts included in "PHP"
| File downloading via HTTP (0) | 2008/01/21 |
| How to extract file name from given URL ? (0) | 2008/01/21 |
| How to download a file from a certain URL to server ? (0) | 2008/01/21 |
| XMLRPC example (0) | 2008/01/07 |
| How to upload attachments such as image by metaWeblog API ? (0) | 2008/01/07 |
| How to post blog content by metaweblog API ? (3) | 2008/01/02 |
| Posting to a Wordpress Blog Via XMLRPC Using Blogger API (1) | 2007/12/15 |
| foreach loop (0) | 2007/10/16 |
Trackback : Cannot send a trackbact to this post.
-
Subject different money making ideas
2010/01/29 00:15
moneyideas
-
Subject different money making ideas
2010/01/29 08:37
moneyideas
-
Subject different money making ideas
2010/01/31 16:43
moneyideas
Grabs the referring URL - get the HTTP_REFERER and save it to a variable.
code snippet:
Another posts included in "PHP"
| PHP form handling example in single page (0) | 2007/10/16 |
| PHP if...else... example (0) | 2007/10/16 |
| How to include a file with error reporting ? (0) | 2007/10/16 |
| How to convert formatted date time string to datetime? (0) | 2007/10/12 |
| How to remove or set time limit that defined as max_execution_time in p... (0) | 2007/09/18 |
| Adding and Subtracting Time (0) | 2007/09/13 |
| The three simplest regular expressions you will use in PHP (0) | 2007/09/12 |
| Send email Message With PHP (0) | 2007/08/26 |
Trackback : Cannot send a trackbact to this post.
-
Subject Buy vicodin online next day delivery.
2008/12/23 16:38
Buy vicodin online no prescription. Buy vicodin online without.
-
Subject Buy vicodin online without prescription.
2008/12/24 23:35
Buy vicodin online. Buy vicodin online without a prescription. Buy vicodin online without.
-
Subject Valtrex prices.
2009/04/03 16:17
Pregnant valtrex. Valtrex medication. B valtrex.
-
Subject Tylenol with codeine.
2009/04/16 13:12
Codeine. Codeine online.
-
Subject Cocaine with codeine.
2009/04/16 21:30
Codeine.
-
Subject different money making ideas
2010/01/29 00:36
moneyideas
-
Subject different money making ideas
2010/01/29 08:52
moneyideas
-
Subject different money making ideas
2010/01/31 16:42
moneyideas

Prev

Rss Feed