The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 18, 2019, 10:44:01 AM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: strange $_SERVER['HTTP_REFERRER'] artifacts  (Read 2040 times)
svakanda
Expert
****
Offline Offline

Posts: 131



View Profile
« on: August 10, 2008, 03:59:34 PM »

some of my monitoring software gets a strange value from the $_SERVER['HTTP_REFERRER'] variable now and again, and it totally bungles up my script.  Does anyone know why this happens?   It's about 1/15000 or so, but it makes me sad =(

here is example of one....

Code:
http%3a%2f%2fpressboxsportsbar.com%2findex.php

any thoughts or any easy way to cleanse?
Logged

a ship is safe in the harbor, but that's not what it's for.
svakanda
Expert
****
Offline Offline

Posts: 131



View Profile
« Reply #1 on: August 12, 2008, 11:17:31 AM »

i have not figured out why the browser is passing that twisted value...but i did resolve the problem on my end by just checking for % with stristri(), then dumping the entry.
Logged

a ship is safe in the harbor, but that's not what it's for.
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #2 on: August 12, 2008, 03:42:30 PM »

Could be a bot that has collected your link from <elsewhere> and is using the referrer to see what your site does with one... but the scraper didn't urldecode what it code from the previous site.
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!