LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-12-2007, 11:55 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
wget and links2 can't access web page.


Why do none of these work?

wget http://www.blackcats-games.net/signup.php

links2 -source http://www.blackcats-games.net/signup.php

links2 -dump http://www.blackcats-games.net/signup.php

The only way I've been able to access that page is by clicking a link. I need to be able to access it from a script, so I can know when registration opens. Is there any possible way to do this? Here's what I have.

wget -P/tmp http://www.blackcats-games.net/signup.php > /tmp/logfile 2>&1; if (grep -q 'current user account limit' /tmp/signup.php); then DISPLAY=:0 xmessage 'account registration opened at blackcat'; cat /tmp/logfile; fi; rm -f /tmp/signup.php /tmp/logfile > /dev/null 2>&1
 
Old 12-13-2007, 05:37 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
The link doesn't do anything in firefox either, if you go directly to it. Probably there is something with javascript on the page where you found the link, which adds some parameters or something like that.
 
Old 12-13-2007, 06:40 PM   #3
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 matthewg42 View Post
The link doesn't do anything in firefox either, if you go directly to it. Probably there is something with javascript on the page where you found the link, which adds some parameters or something like that.
I think the web server knows if I clicked on the link or not by the http referrer sent to it, so I want to spoof it. How can I know what http referrer is sent to the server when I click on the register link from the homepage in Firefox?
 
Old 12-13-2007, 07:15 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Quote:
Originally Posted by fakie_flip View Post
How can I know what http referrer is sent to the server when I click on the register link from the homepage in Firefox?
I'd just run wireshark (used to be called ethereal) and sniff the packets - you'll get all the gorey details that way.
 
Old 12-13-2007, 07:50 PM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
I think the referrer string is usually just the URL of the page where you found the link, no?
 
Old 12-13-2007, 08:02 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
That's right, but I don't know enough about it to know if for example, the page is changing the referer (http://en.wikipedia.org/wiki/Referer#Referer_hiding) or if it's using the correct URL.
 
Old 01-11-2008, 04:34 PM   #7
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
http://www.blackcats-games.net/signup.php:
Quote:
NO, the link is NOT broken, we are closed to new signups. The page is missing intentionally!
That's today, any chance the same thing was happening a month ago?
 
  


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
Web-page access control on embedded device simon_qwl Programming 2 02-27-2007 11:06 AM
web page database access per page or per session? b0uncer Programming 6 01-13-2007 12:09 PM
cannot access config web-page for adsl router tireseas Linux - Networking 6 03-19-2005 04:13 PM
Allow this particular web page access on port 443 ONLY lothario Linux - Software 2 01-14-2005 10:14 PM
Web page user access Cristian Negres Linux - Newbie 2 01-05-2002 12:43 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:51 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