Prevention : People Stealing Pages

Feb 22, 2001

i want the browser to test wether or not a page that is
called is beieng called from within the specified window
the script is originally used to prevent a page within a frame to be called alone it redirected the user to the main window if i can call it that so that parts of
your frames could not be viewed alone

i have managed to secure most of my site
no rightclicks can be performed and no options to view
source code by using a chromeless window the problem now
is that i wanna make sure that someone cannot call a page
into a normal browser window by using shift while clicking
on links thus preventing anyone from getting to my source code.

View 10 Replies


ADVERTISEMENT

Bandwidth Theft Prevention

Jul 27, 2002

I found this on JavaScriptKit. It checks to see if the site accessing the data is your domain. I found it pretty cool.

//Beginning of "test.js" file
var accepted_domains=new Array("wsabstract.com","javascriptkit.com")

var domaincheck=document.location.href //retrieve the current URL of user browser
var accepted_ok=false //set acess to false by default

if (domaincheck.indexOf("http")!=-1){ //if this is a http request
for (r=0;r<accepted_domains.length;r++){
if (domaincheck.indexOf(accepted_domains[r])!=-1){ //if a match is found
accepted_ok=true //set access to true, and break out of loop
break
}
}
}
else
accepted_ok=true

if (!accepted_ok){
alert("You're not allowed to directly link to this .js file on our server!")
history.back(-1)
}

/////rest of your libray
"
"
"

View 1 Replies View Related

JS Memory Leak Prevention?

Jan 19, 2010

Do the latest browsers still need this? I could find an article about IE8 which states that its garbage collection has improved so circular references shouldn't be a big problem any more.Reason for asking is that I maintain an JavaScript / AJAX framework and we are currently optimizing our code which contains a lot of code to remove references from and to the DOM and to remove event listeners.

View 1 Replies View Related

Prevent Iframe From Stealing Focus?

Jan 27, 2009

I'm working on a site that uses an iframe to load cross domain sites.The problem is that some sites use javascript to say put focus into an input field.I have managed to prevent this by using setInterval that continuously gives focus to an input on my page but this causes the problem of not being able to click into the location bar.So basically, is it possible to to only regain focus when an element inside of the iframe takes focus? Or even just solving the location bar problem with my current solution would also work. (And I have tried things such as applying onfocus events to the iframe element - but they simply don't work because it's not the iframe that's gaining focus, but elements inside of it)

View 2 Replies View Related

Preventing Source Code Stealing?

May 28, 2009

Ok I made a post yesterday for a calculations script and I figured it out.Now the problem I have is as soon as I put it on my website a competitor is going to steal the code and put it on his/her/their page.Is there a way that I can put in my html a call to the javascript so that it just gets the script runs it and then displays it to my page without actually having the source displayable anywhere? Here is the code I made that I want to protect:

Code:

<html>
<head>
<script type="text/javascript">[code].....

View 13 Replies View Related

How Many People Run With JS Disabled?

Jul 23, 2005

Is there any statistical data available about what percentage of browsers run with JS disabled?

View 24 Replies View Related

Stop People Using Bandwidth

Jul 23, 2005

Does anyone have a good java script that I can add to my page so that the same user doesn't pound my site and use all of my bandwidth?

View 12 Replies View Related

Getting Address Of People Accessing Site Using Js

Jul 23, 2009

I'd like to be able to get the address of people accessing my site. I don't need their actual house address, just a general area like zip code or city/state/country. Is something like this possible? I know you can do this in php.

View 2 Replies View Related

Statistics On How Many People Have Javascript Enabled?

Mar 15, 2003

I wondered if anyone knew of any statistics about how many people have Javascript enabled/disabled. Also, what sort of policies do IT departments have towards it. I know of at least two large organisations that have Flash disabled for instance.

View 2 Replies View Related

Displaying When People Put There Mouse Over The Links?

Apr 17, 2009

I'm try to hide the title of some links on a web page. I'm using the title property of some links to pass a description of the images linked to a lightbox script. These descriptions are long and formatted in HTML so I don't want them displaying when people put there mouse over the links.

Heres an example of my title tags:

Code:
<a href="image1.jpg" title="<b>Blah</b> <br> Blah" alt="" rel="lightbox">Image 1</a>

I heard this can be done in Javascript but can't find any information anywhere,

View 5 Replies View Related

Preventing People From Entering HTML In Textarea

Jul 20, 2005

I have a text area and I want prevent people from entering HTML text in the text area....

View 3 Replies View Related

How To Protect JS Code From Analysis By Competent People?

May 16, 2003

I'm developing very advanced web-based intranet application that uses a lot of very complex JavaScript for interface, including charting via ActiveX components and other processing.

Obviously I'm tempted to make the analysis of the javascript code very hard for people who may wish to steal my code and/or ideas.

Is there is anything I can do to make analysis of .js code difficult for *professionsals*?

View 3 Replies View Related

Allow People To Download Mp3 File By Clicking Button

Dec 25, 2010

I'm trying to allow people to download music files, from my web site server, to their desk top, by clicking a button. I don't know if I need html or some kind of script. The page already plays short music clips automaticly with a simple "onload" script I found somewhere--but I don't know how to get the viewer a copy of the music for their mp3 player or disk burner.

View 5 Replies View Related

Why Do People Prefer Ajax Apps Over Java Applets?

Sep 21, 2006

From the common user perspective (like my grandma), why would they care
if its a java applet or an ajax application? Say I want to make a chat
system on my website...If i'm doing really involved Comet push-style
data communication, and rendering everything using DHTML, why would
users prefer that over a java applet?

Moreover, say I use a java applet to transfer data through a socket
connection, then use DHTML to display the data, so that basically the
front end is the same, but the backend is differs, why would a user
prefer the comet-style programming over applet?

I'm asking because I wrote an Ajax chat system through polling, and I
want to switch to a Comet push-style system because polling just isn't
responsive enough. I want to know if I can avoid Comet (since it is
alot of overhead for the server) and just use an applet in the
background to transfer data through socket connections, then use DHTML
to render the chat boxes.

View 8 Replies View Related

JQuery :: PHP Script That Will Use Pagination To Display What People Have Written?

Jan 27, 2011

I'm creating a PHP script that will use the pagination to display what people have written. This will can get fairly lengthy and I was wondering what is the best way to develop my php script to be fast and effective. I'm scared that if I output an entire query of all of the data that it will be slow. Would it? Could it slow down the javascript?

View 2 Replies View Related

Disable ALT + TAB Key Combination On My Webpage To Avoid People Using Any Other Application?

Feb 27, 2007

I want to disable ALT+TAB key combination on my webpage to avoid people using any other application while using my application while working on my website.

View 14 Replies View Related

Anti - Ignorant People - Reading The Usernames And Passwords?

Feb 2, 2010

I have this script, where I want it to use a multi-user login. the code is below.

[Code]...

I have 2 problems. One is that mainly, it doesn't work! And Two, is there someway you can block an external script from being viewed in a browser, or someway to keep people from reading the Usernames and Passwords?

View 1 Replies View Related

Show Images After People Scroll Down The Page - Don't Load Them Immediately?

Sep 21, 2011

show images after people scroll down the page - don't load them immediately after the page is loaded.also the images which are below the scroll should be first loaded when an user scrolls down.i need a javascript for that, but i don't want jquery! the code should be as short as possible.

View 2 Replies View Related

Code Won't Run On Certain Pages/areas On Pages?

Sep 27, 2009

I coded the following JavaScript:

var el = document.createElement("iframe");
el.setAttribute('id', 'ifrm');
document.body.appendChild(el);
el.setAttribute('height', 250);

[Code].....

And am putting it between <script type="text/javascript"> and </script> tags in the <body> section of my site. But, it only works in certain areas of the page.

View 6 Replies View Related

HTML - Build A Web Page To Conduct A Fictious Online Poll And People Vote Their Favourite Candidate

Jul 14, 2011

I am trying to find the answer of the following. Suppose, I am trying to build a web page to conduct a fictious online Poll and people vote their favourite candidate. Now each voter is allowed to vote only one candidate from any one party. I have made the code with JavaScript and HTML. But the problem is that, after voting the Candidate and pressing Submit, the page should open another new page where the voter must select any one name of the party to which the candidate belongs and Submit again. But my problem is that, I am trying to open that new page in the place of the existing page but its only opening in a new window. Putting '_self' doesn't work! (I am using radio buttons. It also needs form vaildation so the voter must vote!)

<HTML>

Use any html file of yours as party_names.html. If you omit "_self" from it, then it'll work properly. But that opens a new window for party_names.html. But I want it to open the new page in the same window carrying the data selected from both pages in order to process in the server.

View 9 Replies View Related

Onclick Event - Prevent People From Clicking "search" Twice

Jun 15, 2010

I have very intense php script that takes from 5 - 30 seconds to execute, depending on user request. So I want to prevent people from clicking "search" twice, so I decided to glue it by disabling button on click.
Here is my code:

[Code]...

But, for some reason it won't proceed. JS executes fine, but form won't go on. What is wrong?

View 1 Replies View Related

Linking Html Pages - Link Two Html Pages?

Jul 19, 2011

How to link two html pages? If we use <a> then what do wr give value to href?

View 3 Replies View Related

Show Different Pages

Dec 24, 2006

i find some web sites show different pages by user's click on the different
headers.

most important is the client browser does not reload from the remote server.

may i know have some info / basic operation on it?

View 2 Replies View Related

JQuery :: $.each, Getting The Next Of I, And Pages?

Aug 8, 2011

I'm working on a slideshowish type thing using jqm & player, and I'm having trouble solving what seems like it should be a simple problem. I'm using virtual pages, and a javascript object as a script to build the pages programmatically -

[Code]...

If I'm correct that there is no way to get i+1 inside of an $each(collection, function (i, item){} through i + 1 (well, I know that doesn't work - if i is "T1" then i+1=T11), or i.next or something, is there an elegant way to get the next iterator? Something like i.parent.nextChild or something? Should this be in the getting started forum?

View 3 Replies View Related

Same Text - Different Pages?

Mar 7, 2009

You know when you have a menu on a page, and have.. let's say.. a 100 other pages.

Say the menu is like this:

Now: you want to add a page to this menu. Instead of adding a page to every single menu, could you have (earlier) edited in this:

Or wouldn't this work?

I asked about how to do this in another place once, and got a reply about using 'PHP inputs', but I'm using tutorials for JavaScript now, and it seems like this would do it. Would it work?

View 3 Replies View Related

Fun Way To Link 2 Pages Together

Aug 10, 2004

I was experimenting and I figured out a fun and cool way to two pages together by going back one page in history. The codes can be found here (MUST be named page_one and page_two and be placed in same folder/directory)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<html>
<head>
<title>Home</title>
</head>
<body>

<div align="center">
<font color="black" face="verdana" size="2"><b>
You are at home. If you want to go to school, go
<a style ="text-decoration:underline;color:#000000;size:2" href="page_two.html">
here
</b></font>
</a>
</div>

</body>
</html>


...And page two..


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>School</title>
<script type="text/javascript">
<!--
function question()
{
if(confirm("If you are homesick click OK. If not click Cancel"))
{
history.go(-1);
}
else
{
alert("Not homesick? Stay here then")
}
}
//-->
</script>
</head>

<body>
<div align="center">
<font face="verdana" color="black" size="2"><b>
Your at school. Are you homesick? If so, go
<a style ="text-decoration:underline;color:#000000; "href="#" onclick="question();">
here
</a>
</b></font>
</div>
</body>
</html>

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved