hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : remove refferers
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

remove refferers

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 05-10-2008, 10:34 AM
NWSTech NWSTech is offline
Web Hosting Evangelist
 
Join Date: Apr 2005
Posts: 527

remove refferers


hello,
ive been having a spate of sites getting hacked because hackers are linking from the site to an image on their sites and then getting the sesson ids of users on my sites from the referrer string in logs - i cannot remove the session ids from the address before anyone asks as the sites are primarily used on mobile devices which do not all support proper php sessions, is their any way i can tell php not to pass a refferer or to change the refferer at all ?

__________________
Reliable, Affordable Web, business and shoutcast hosting - http://www.loadsofspace.net
on-demand shoutcast also available

Reply With Quote


Sponsored Links
  #2  
Old 05-17-2008, 04:05 AM
dhelfman dhelfman is offline
Newbie
 
Join Date: Apr 2008
Location: Seattle, WA
Posts: 19
Whether a referring URL is sent to a site is decided entirely by the user's web browser. So your PHP script doesn't really have any control over that.

One hack would be to make your links not take the user directly to the destination web site, but instead redirect to another one of your own PHP pages that takes one argument, the actual destination URL, and redirects to that URL immediately. So when your user clicks the link, they're taken to your PHP redirection script, which then forwards them on to their actual external destination.

The benefit is that the browser's referrer URL, as sent to the external web site, will be your PHP redirection page. And if you don't use session IDs at all for that page's URL (since it doesn't need to know or care which user it is), then the referrer URL won't contain the session ID.

Just an idea.

__________________
Luminotes personal wiki notebook | http://luminotes.com/

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Important changes to WHIR Networking Events Europe schedule Blog 2013-04-15 16:00:16
White House Opposes SOPA and PIPA, SOPA Vote Delayed Web Hosting News 2012-01-16 14:10:31
Bit lockers and the DMCA Blog 2011-12-15 17:14:36
Web Host Rackspace Launches Private Beta for MySQL Cloud Database Web Hosting News 2011-12-01 21:09:51
Saving Money while Collecting Money with Bill Ranta and Sayid Shabeer of Litle & Co Web Hosting News 2011-08-10 22:36:08


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?