LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-13-2007, 01:56 PM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
http referrer


Does Linux have any software that can spoof the http referrer to a web server? Does it work with wget or in a script? My script can't access a web page without spoofing the referrer.

http://en.wikipedia.org/wiki/Referer_spoofing
 
Old 12-13-2007, 02:48 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
sure, curl and wget can add referrer headers in directly, just check the manpage.
 
Old 12-13-2007, 03:47 PM   #3
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
You can do it w/ Firefox:

http://livehttpheaders.mozdev.org/

HTH

Forrest

Last edited by forrestt; 12-13-2007 at 03:50 PM. Reason: Pasted wrong URL
 
Old 12-13-2007, 06:36 PM   #4
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
Quote:
Originally Posted by forrestt View Post
You can do it w/ Firefox:

http://livehttpheaders.mozdev.org/

HTH

Forrest
Thanks for the suggestion, but I need to do it from a script. How can I know what referrer is being sent to a server when I click on a link?
 
Old 12-13-2007, 10:15 PM   #5
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Sorry, didn't see where you needed to do it from a script (old eyes I guess). Try wget as acid_kewpie suggested.

Forrest
 
Old 12-13-2007, 10:34 PM   #6
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
How can I know what the http referrer is being sent to the server that I should use with wget?
 
Old 12-14-2007, 02:42 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
just a -v for verbose info. again, all in the manpage...
 
Old 12-14-2007, 05:53 AM   #8
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
How can I know what the http referrer is being sent to the server that I should use with wget?
With livehttpheaders (great stuff), you look what firefox does.
Then you do it in your script with curl/wget modifying the referer value
 
Old 12-15-2007, 03:34 PM   #9
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
Quote:
Originally Posted by nx5000 View Post
With livehttpheaders (great stuff), you look what firefox does.
Then you do it in your script with curl/wget modifying the referer value
Why is livehttpheaders great stuff, and how can I use it to get the http referrer? I have it installed. The capture box is checked, but nothing appears to be capture. The window is blank.
 
Old 12-15-2007, 03:36 PM   #10
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
Quote:
Originally Posted by acid_kewpie View Post
just a -v for verbose info. again, all in the manpage...
I cannot download the website with wget or curl, so why would -v do me any good?
 
Old 12-15-2007, 03:37 PM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
sorry, misread that. yeah liveheaders, or i'd just tcpdump /wireshark the traffic as it leaves the box.
 
Old 12-15-2007, 03:42 PM   #12
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
Quote:
Originally Posted by acid_kewpie View Post
sorry, misread that. yeah liveheaders, or i'd just tcpdump /wireshark the traffic as it leaves the box.
How can I use liveheaders to get the http referrer? I have it installed. The capture box is checked, but nothing appears to be capture. The window is blank.
 
Old 12-15-2007, 03:55 PM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
works for me without touching a thing...
 
Old 12-16-2007, 01:04 PM   #14
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
Quote:
Originally Posted by acid_kewpie View Post
works for me without touching a thing...
Okay, I'll reinstall it and try it in Firefox 3.
 
Old 12-16-2007, 01:09 PM   #15
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well i'm on 2.0.0.10 at the mo... might want to just try tcpdump too... run "tcpdump -X port 80 -s0" to dump the http traffic in hex. certainly not as readable, very quick quick and simple though.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
download manager supporting custon referrer linuxmandrake Linux - Software 1 06-15-2007 06:44 PM
Blocking a domain referrer from a webserver? Seventh Linux - Security 1 02-06-2007 04:28 PM
What is referrer logging and proxy server? M$ISBS General 1 04-20-2006 02:42 AM
Lockdown Apache VirtualHost by Referrer R4z0r Linux - Networking 1 09-14-2005 01:04 PM
Analog Referrer Report for web traffic geoffm33 Linux - Software 3 11-27-2002 08:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration