Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hide/supress/obscure URL when "chaining" to another page (PHP)
2012-12-12, 17:13 (This post was last modified: 2012-12-12 17:14 by thomil.)
Post: #4
RE: Hide/supress/obscure URL when "chaining" to another page (PHP)
As a quick and dirty hack you could replace line 75 in src/usr/ifmgmt.c:

if ( ( rc = monojob_wait ( uri_string_redacted ) ) != 0 )

with:

if ( ( rc = monojob_wait ( "" ) ) != 0 )


This is untested but it should prevent the URL from being printed at all. Please note that after that change *all* URLs will be hidden and you won't have any feedback about which URL failed to download, if that should happen.

From looking at the surrounding code it appears that iPXE will automatically hide the password if you're using HTTP authentication. Instead of printing "http://username:password@host/file.php" it will print "http://username:***@host/file.php". If this is an option for you you may want to look into that as it's a much cleaner solution.

If you're a C programmer you could also add a setting to enable/disable the URL printing on demand, using the above hack as a starting point.

Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Hide/supress/obscure URL when "chaining" to another page (PHP) - thomil - 2012-12-12 17:13



User(s) browsing this thread: 1 Guest(s)