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 |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Hide/supress/obscure URL when "chaining" to another page (PHP) - Torgeir - 2012-12-07, 19:29
RE: Hide/supress/obscure URL when "chaining" to another page (PHP) - robinsmidsrod - 2012-12-07, 20:45
RE: Hide/supress/obscure URL when "chaining" to another page (PHP) - Torgeir - 2012-12-07, 21:04
RE: Hide/supress/obscure URL when "chaining" to another page (PHP) - thomil - 2012-12-12 17:13
RE: Hide/supress/obscure URL when "chaining" to another page (PHP) - Torgeir - 2012-12-12, 22:22
RE: Hide/supress/obscure URL when "chaining" to another page (PHP) - thomil - 2012-12-13, 11:01
RE: Hide/supress/obscure URL when "chaining" to another page (PHP) - Torgeir - 2012-12-13, 11:40
RE: Hide/supress/obscure URL when "chaining" to another page (PHP) - redjade - 2017-06-22, 09:17
RE: Hide/supress/obscure URL when "chaining" to another page (PHP) - robinsmidsrod - 2017-06-27, 10:07
|
User(s) browsing this thread: 2 Guest(s)