Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #23682

How much is possible?

From Swifty <steve.j.swift@gmail.com>
Newsgroups comp.lang.javascript
Subject How much is possible?
Date 2014-03-26 06:48 +0000
Organization Aioe.org NNTP Server
Message-ID <lgtt7e$g0c$1@speranza.aioe.org> (permalink)

Show all headers | View raw


I'd like to use JavaScript to add a row to a table in the parent 
document, if the Remote_Addr is either 127.0.0.1 or 81.2.123.82

I envisage the HTML for the row being read from a local file, preferably 
outside the htdocs directory.

The page in question is what I use as my homepage in all the browsers 
that I use. The row that I'd like to add is a set of links associated 
with online banking. There's nothing in the proposed row that would 
directly give access to my online banking, but just knowing which banks 
is more than I want to expose. By having the JavaScript fetch the HTML 
from a local file, I presume I'll be makig it harder for a remote hacker 
to deduce the content of the additional row.

I know little about file access from JavaScript, other than that it is 
quite restricted.

Is what I'm asking impossible? I'm quite content to forget about this, 
going on as I always have, but that extra row would come in handy.

-- 
Steve Swift
http://www.swiftys.org.uk/

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

How much is possible? Swifty <steve.j.swift@gmail.com> - 2014-03-26 06:48 +0000
  Re: How much is possible? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-03-26 09:21 +0100
  Re: How much is possible? Dr J R Stockton <reply1400@merlyn.demon.co.uk.invalid> - 2014-03-27 21:30 +0000

csiph-web