Wasp:protecting Web Application Using Positive Tainting And Syntax Awa?
Feb 2, 2009i want algorithm for positive tainting and syntax aware evaluation
View 1 Repliesi want algorithm for positive tainting and syntax aware evaluation
View 1 RepliesWrite a program which takes a series of positive integers as input : 1, 2, 3 …
When input is complete, as indicated by entry of an end of data flag ( -2), the program will output the largest of the entered values.
I have a calculated value that is negative, which I need to display in a javacript prompt as positive. In ColdFusion, there is a function called ABS(), which gives you the absolute value of the number in question, so ABS(-5) = 5. Is there something similar in javascript? If no, how would I display a negative number without it's negative sign? Again, this is only for display purposes withing an alert.
View 2 Replies View RelatedI'm just starting out learning and have sort of given myself a couple of basic problems to solve. I pretty quickly found something that's apparently hard to Google.I've made a page that shows a counter number, starting at 0, with buttons that will increase or decrease the number by 1 or 10.So I'd like to figure out how to show that number in red when it is a negative number and in green when it is a positive number. I've tried a couple of things, including an if... else, but here's my latest crack:
var counter=0;
function countUp() {
lastCounter=counter;
[code]....
I would like to be able to make it so that an order form only submits positive results.I have modified this form for my friends website. She has 50 different products that she makes (different sizes and colors). The form submits results for things ordered but also for things not ordered.
PROD_yellow_3.00=
PROD_green_3.00=
PROD_blue_3.00=
[code]....
I'm currently doing on a project, frankly speaking i'm new in javascript only know the basics. I'm not even sure whether this thread is suppose to be here or under html.. I'm suppose to create some codes that enable a html page to load to the next html page when the mouse move from left to right within a specific time and distance(positive X coordinate) and also the other way round (right to left) once i figured out this. I've got an example online and edited it. Please take a look at my codes.
[Code]...
test01.html is just blank page created to make sure it loads. However i would like to load from test01 to another html page but no matter how i tried to edit the codes, there's errors. I cant possibly copying and pasting the exact codes to every page i want to load to right? And is it possible to sortof increase mouse sentivity such that i can most probably load to the next page in first few tries of moving the mouse on the first page. Is it common that when i launch the html on IE and Firefox somehow after showing the first page for maybe 1 second, it immediately jumped to 2nd page and i have to go back to 1st page to try out.
Is it possible to password protect a javascript and still have it work?
View 4 Replies View RelatedThe following method should prevent users of client computer to access script and style code using the following techniques:
- View (Page) Source - either through right-click, menu or shortcut key
- Save As...
- Temporary Internet Files Folder
The suggested method uses server side scripting and is implemented using ASP.
Your HTML file:
<html>
<head>
...
<script type="text/JavaScript">
scriptsString=ƈ,6,5'
</script>
<script type="text/JavaScript" src="ScriptLoader.js" ></script>
....
ScriptLoader.js listing:
scripts=document.createElement('script');
scripts.src='ScriptLoader.asp?Scripts=' + scriptsString;
document.getElementsByTagName('head')[0].appendChild(scripts);
Action is in ScriptLoader.asp
<%@ Language=VBScript EnableSessionState=False %>
<%Option Explicit%>
<% Response.Buffer = True
Response.Expires = 0 'Prevents caching of the content
%>
<%
Dim strScripts
Dim ipsp, iFNum
Dim fso, file
Dim strReferer
Dim bRM = False
Dim Scripts(13)
Scripts(0) = "Script1.js"
...
Scripts(13) = "Script13.js"
strReferer=Request.ServerVariables("HTTP_REFERER")
'compare referer to the address of the page that uses the
'scripts and continue only if matches. This will allow access
'only by your file
strScripts=Request.QueryString("Scripts")
set fso = Server.Createobject("Scripting.FileSystemObject")
While Len(strScripts) > 0
ipsp = InStr(1,strScripts,",")
If ipsp = 0 Then
iFNum=CInt(strScripts)
strScripts=""
Else
iFNum=CInt(Left(strScripts,ipsp-1))
strScripts = Right(strScripts, Len(strScripts) - ipsp)
End If
set file = fso.opentextfile(Server.MapPath(Scripts(iFNum)), 1)
Response.Write(file.ReadAll)
file.close
set file = nothing
Wend
set fso = nothing
%>
Hope this will extinguish some of the code protection debates. If you see holes in the suggested approach let me know. It still does not protect from net traffic sniffers ....
I made a form, but I don't want just anyone to be able to use it. So I was wondering if it was possible for the page to check if they were logged into my forum.
View 1 Replies View RelatedI website I've seen recently uses a clever technique, which I'm still working to figure out. When you go to view an image, a pop-up window opens -- the image is downloaded (non-cached) and then some javascript (presumably) loads a replacement image in its place (it's not displayed) -- when you go to save it, you get the dummy image.
Further, they make some javascript call (presumably, or jquery) to replace the document content of that page, so when you do a View Source, you get something totally different.
How this is actually working, and whether something like that could be cross-browser supported.
I have designed a template for a script in html and planning to sell it, but i am too concerned with piracy because i need money urgently for my further studies and piracy will ruin it,
So is there anyway you can suggest from protecting it?
The 1 way i have in mind is the first time the template loads it send the domain name using the template to my site and automatically placing a php file in another directory so that if i find the user malicious (using the pirated copy) i can disable the template and request him to buy a legitimate copy.
And can that javascript be divided into parts? like 1 part in header another in body and so on, so that it is hard to find the code.
I know there is no 100% full proof way of securing but having done little from our side can also help us avoid few pirate's .
So the page is [url]
If you click on 'Tide' you can see the password prompt appears. But the problem I am having is that even if you press cancel or do the wrong password a few times it still open up the shadow box.
This is the script for the password protection
This is an example of how a working (non shadowbox) version works successfully.
[url]
I am trying to prevent an email address from being spammed as spammers use spidering tools to scan the internet for exposed email addresses in plain text.
I am using a technique and I'm not sure whether it will deter spam bots.
I have an external Javascript file with the following variables:
var usr = "mark";
var at = "@";
var domain = "fullmarksdrivingschool.co.uk";
[Code].....
When I open the web page in a browser the email address displays correctly but does this technique work to prevent spammers from indexing the email address?
I'm working on a project that requires files to be password
protected on a UNIX based site. The people that own the web site want
to be able to change the password every so often. Unfortunately, I
have restricted access only to FTP so I really can't log in to any kind
of Administrative Console or Admin Panel and see if there are folders
that can be password protected and then have passwords changed on them.
The people I'm contracted to work on the site for aren't the most
computer savvy people though....so..my question is:
Is there a user friendly way of password protecting a folder on a UNIX
based site?
i'm a newbie on jquery i'm studying it with the latest version, and following a book called "Learning Jquery" but iencountered a error, and i don't know what the problem is:
i copied the code from the book like this:$('a[@href^="mailto:"]').addClass('mailto'); to try to change the links which start with "mailto" to the new class "mailto" but there's a error reported: uncaught exception: Syntax error, unrecognized expression: [@href^="mailto:"]
How to make a website show the contents readable to the visitor, while the text is entirely protected, no downloads, no copy/pasted, no saving, ..?
All possible controls to take to protect the content.
It could be somewhat similar to Google Books and Scribd:
A combination of Javascript, PDF, images, Flash, ...
Is there any tool for this? Or just; how to make it ourself?
I need to develope a multilanguage application in javascript:
is there some particular library, or do you have some
pointer to guidelines to follows: the messages should
if possible be keeped in a separate file, one for language.
Is there some standard format?
I having taken on a large project (set by myself), and I can never
seem to plan out my functions, classes, variables etc... in a format
that's easy to read, and follow.
Would anyone know of some kind of application which will allow me to
"prototype" my application first? I am sure such a thing exists, I
just don't know what I am looking for. I think I am after something
along the lines of Microsoft Visio, but a bit simpler.
I know this sounds so stupid, but it's a project that I am working on. I need to develop an application where people can upload a picture of themself and then it will add a wig to their picture over their hair.I just don't know how the code scans the uploaded photo and finds where to add the wig to the picture. The program will be really simple. No choice of wigs there is just one wig and as soon as the picture is uploaded the wig should be added and then displayed.
View 2 Replies View RelatedIs there any way for me to capture the DocumentBeforeSave event with an ActiveXObject("Word.Application") via Javascript in IE?
View 1 Replies View RelatedIs there any way to debug javascript in a web application? When I
develop JSP pages, and it has the javascript code in it. The problem is
the debugger in Java IDE (WSAD in my case) can only debug Java code but
not Javascript code.
What should I do to debug javascript code?
I am developing a web application in asp.net. In this application, i would like to disable all other tool bar other than menu bar. If you know more about the same. Please guide me to proceed further?
Note: It should work for all major browser such as IE, netscape, Mazilla, opera....
I am using ASP to make an application. What I want right now - is to
make the self updating list of the users online - based on thier
cookies. In my opinion all seems to be writen well with it's logic, but
computer thinks otherwise. I use application("loged") to store the
cookies of all users. Code:
Ineed to pass two variable in a querystring from one application (in PHP) to another (in ASP.NET). It's a one way transfer...That is I need to encrypt it in PHP and decrypt it in ASP.NET (c#). The data will be anywhere from 5 - 15 characters..only letters and numbers.
View 2 Replies View RelatedI have an application on my server that is called leaf.exe, that haves two arguments needed to run, they are: inputfile and outputfile, that will be like this example:
Code:
pnote.exe input.pnt output.txt
They are all on the same directory as my home page file(the executable and the input file). But I need that a JavaScript could run the application like that, then I want to know how could I do this.I'm using just Apache, I don't have any language for web installed on it. My goal is to do a site using just JavaScript, without the help of anyother language than it, HTML and CSS.
Is it possible to make my application always open in a new window even if IE 7 tabbed setting is set to Open links in a new tab in the current window.Always open pop-ups in a new tab.I am using the following command to open my application in new window
NewWin=window.open('my_http','_blank','toolbar=no,resizable=no,width=1150,height=810')
Which works fine as long as users dont set their IE7 tabbed setting to always open pop-ups in a new tab.