/    Sign up×
Community /Pin to ProfileBookmark

How to block some browser features by php ?

Hi,

Our application is client/server application between main office (as server) and branches at another city (as client). The application is made using PHP , and we use Linux + Apache + Mysql as server. Actually we can use a client/server application made with Java (we have linux server, and at client side we have linux+windows client at other city), but our programmer has done it in PHP instead of Java.

We do not want any other people outside of our staff can access the application. Because the application is made in PHP, so we need a “customize web client” at client side. And they may not click “back button, refresh button, right click” etc …. which normally available at any web browser. This “back, refresh, right click, etc” features can effect our application. That’s why I need some thing like “kiosk web browser, that has special identity” that the only one browser may access to our php application at main office (via VPN from another city – branch office).

So the “modified browser” does not has menu, url, search, back button, refresh button, right click, etc … etc… so, it is like a stand alone application GUI. This simple browser must have ability to run css.

The approach to this, i think is may be like the kiosk. But because of this “kiosk browser” is run from a client PC (not a real kiosk client), so at client side some one still can use a “normal web browser” like IE, FireFox, Safari, etc …. to access the server.

To avoid this, I think at server side (LAMP), we can make small appication to catch the userAgent of client browser, so if the “userAgent” is not xxxxxxxxx, it will be redirect to a blank page. But i can not use “userAgent” information of firefox kiosk, because I can not change the “useragent” of firefox permanently. The firefox addon just can change the userAgent temporary.

I hope some one can help me:

1) How to block “back, refresh, right click, followed url, etc … ” in php at server side ?
So if at client side, they click at “back button” or “refresh button” or “mouse right click” or “type a new URL” etc … the php application will do nothing or block it.

2) Or, how to identify a client side browser if not using “userAgent” information ?

3) Is there another solution ?

Thanks
Gio

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @giovanni4000 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.8,
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,
)...