how can I disable copying images from browsing my website [closed] - javascript

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
There is an option for disabling right click on the website on the computer but on the mobile I don't know which javascript code I would need.

Images have to be copied from the web server to the client system in order for the client system to display them.
There is no way to stop people from saving them.
There is an option for disabling right click on the website
Not one that can't be trivially bypassed.

There's no way to actually block an image from being copied. If it's being shown to the user, they can obtain it. The resource is already sent to them for render anyways.

Related

Detect fake user Agents? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Is it possible to recover if someone is visiting my website using a fake user agent? If yes, can someone please tell me how can find out this information?
Thank you very much!
You can check the user agent from PHP like from this global variable $_SERVER['HTTP_USER_AGENT']. But if someone is using a fake user agent which claims to be something else* it's going to be difficult to spot.
This shouldn't really matter unless they are a hacker who is able to find some security weaknesses in your site and use those to do something nasty like access your database, delete all your data or download your users' credit card numbers.
The solution to the hacker problem is make sure your website is secure.
This is called 'spoofing' as #JAL mentions in his comment above.

Running JS scripts conditionally in an HTML file [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Because of browser related issues (ie, the view being different), I have two versions of a script. one that works on everything but IE, and one I wrote specifically to accomodate IE.I found this other script that detects what browser someone is using when they access a website. I was wondering, if there was anyway i could:
1.run this browser detect script FIRST to determine the boolean for IE/not IE
2. then, determining on this value, run one script or the other?
So... What's stopping you from doing:
var IE = checkBrowserFunction;
if(IE) {
doStuff();
}
? I mean, that seems fairly simple.

Moving objects inside the browser [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to display in a browser a web page which contains:
a number of objects with predictable shapes (squares, rectangles etc)
the user should have the ability to connect these objects using arrows (please see image link)
http://img850.imageshack.us/img850/6999/o33z.jpg
In addition the user should be able to move the objects, and the connecting arrows need to move with the objects so that the arrows keep point to the same objects.
Are there any current web technologies that can to that or is there one that will be a good fit to start using as a basis. I have not done any web work so even javascript might be your answer but please guide me with some specifics.
Look into Jquery UI. There's plenty of abilities in here to do what you specified above. Or you could do it using Flash/ActionScript, although that seems to be (arguably) a diminishing technology.
You can find info on how to use JueryUI here, http://jqueryui.com/draggable/

Synchronous changes to webpages useing javascript [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
This is most likely a very simple question but i am new to server-client programming i am used to only a client. I want an action that is taken on one person's browser to effect the state of the screen to all people that are looking at it.
I doubt it is that hard but i have no idea. And after some googling i can't find anything.
Take a look at websockets, which allow you to open up a constant connection between the client and the server.
Basically you will need the "host" to send its screen data to the server via websocket (or possibly AJAX), which can then transfer the data to the "viewers" (which is where the websockets will be superior to AJAX).

How Can I edit and save at same place any Text file present in my computer using javascript? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
want these things when a function call :
1.Open a text file (not visible to user)
2.Select a Text which is to be change
3.change the text
4.And save it at same place.
This is not possible in JavaScript. JavaScript is sandboxed by the browser and doesn't have access to the local computer.
Also, what you're trying to do sounds dodgy, and may well be the exact reason why it's sandboxed.

Categories

Resources