/    Sign up×
Community /Pin to ProfileBookmark

Dynamically Stopping links working

Hi,

I need to load a page into a browser within a frame/new window but I want to stop the links on that page from working. This is because we want to allow users view pages but not link on from them thus ensuring that the pages they can view are restricted and thus ensuring that our intranet is kept secure and we are not allowing people to just view any page they would like.

Also we would like to check the address the link is to and check if it’s stored in the company database and if so allow that link to work.

I know this sounds weird but there is a very real need to do this and I am hoping that someone can help.

Thanks

Dillon

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceJun 25.2006 — There are hardware appliances which will do that for you as each Internet request starts to leave the building via your network firewall. Otherwise... You would need a browser plugin in order to accomplish that. Even then, you would need it installed on each PC and method of rpeventing the user from disabling or uninstalling the plugin. ? The network appliance is better. ?
Copy linkTweet thisAlerts:
@DillonauthorJun 26.2006 — The problem is that the users of the intranet services are not connected to the server directly so Software/Hardware that you mention would not work.

I have heard that there are Javascript Document objects that can be used but I can't seem to find out how these work and if indeed they will work.
Copy linkTweet thisAlerts:
@netbuddyJun 26.2006 — I would think that a set up that uses PHP to request the external page, parse it so that all links are nulled would be a far more secure method of accessing external pages.

I would also ad caution to this because IT WILL NOT EVER BE 100% because if an image has an onclick event which calls a javascript function, that function may very well have a window.opener attachment to the image click...

But still, something is better than nothing...
Copy linkTweet thisAlerts:
@DillonauthorJun 26.2006 — I thought this too but then thought about the server load in Parse-ing all that code and the amount it would slow up the users request.

On top of that I am not very good with PHP!!!! ? ?
Copy linkTweet thisAlerts:
@netbuddyJun 26.2006 — It wouldnt add much to it...

Regular Expressions were created just for such instances where you need to find and modify the data found.
×

Success!

Help @Dillon spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...