Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6144407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:38:45+00:00 2026-05-23T18:38:45+00:00

I have built a new jQuery plugin and I want to be able to

  • 0

I have built a new jQuery plugin and I want to be able to demo this to the user before they can purchase this. But I also don’t want anybody to be able to simple copy the code without paying for it.

For that reason I have encoded the plugin using http://www.vincentcheung.ca/jsencryption/

I thought of 2 ideas to further protect/make it harder to copy:

  • Hard code the domain name check against window.location.hostname
  • Using AJAX send as much information about the website back to a PHP script on my server.

What extra information can be fetch using Javascript apart from the domain name. E.g. PHP you have the $_SERVER[].

Do you have any ideas to protecting it further?

Ok I just have just wrote this myself and this, seems to work on two different domains.

$.ajax({
    url: 'http://example.co.uk/record.php',
    type: 'post',
    data: 'href='+document.location.href + '&referrer='+document.referrer
});

Record.php

mysql_query("INSERT INTO `demo` (`id` ,`datetime` ,`href` ,`referrer`)VALUES (NULL ,CURRENT_TIMESTAMP , '".$_POST['href']."', '".$_POST['referrer']."')");
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:38:46+00:00Added an answer on May 23, 2026 at 6:38 pm

    I don’t think you can do that. If you want to demo to the user, just record a movie of it in action. Most of the websites do it like this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to jQuery. I have learned functions like SlideUp and Down but
I have built a test app on android using this cool-ass PhoneGap framework, but
I am new using Jquery. I am using vb.net 2008, and I have built
I'm new to using jQuery. I tried to build a plugin, but it didn't
I have built a function using jQuery to insert into a table a new
I'm fairly new to PHP and have built a medium sized website using standard
I have installed the new asp:chart control on my machine and have built an
I have built a very simple blog application using Ruby on Rails. New to
I have deployed a new build on Production server, but I dont see the
I apologize if this question is vague, but I want to build a drop

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.