| I just signed up to the free service and find this confusing.... I have created my website with the wix programme and don't think or know how to load the code into my wix site. so wanted thought I could just go into the area to upload alternate image - at this area and click save options - but it wont allow me to save options down below the box doesn't allow it..... how can I upload an image to save if it wont allow me to save it....... is there another way of showing an image if I cant put the code on mysite |
|
| |
|
Valid Domains
Prevent unauthorized Thumbshot image requests from unknown sites. If no Valid Domain is set, the system will allow request to be used from any web site. Enter one domain per line (max 100). Remember to click Save Options to save changes.
Example:
myblog.com
myshop.com
mysite.com |
|
| |
|
| |
|
URL Encryption (advanced option)
You can increase security by accepting valid requests only. Once enabled, you must return an encrypted security token, which consists of your encrypted URL, using the "xurl" querystring parameter in addition to your regular Thumbshot code. Since you are the sole holder of the secret key, only you are able to generate a valid request. Remember to click Save Options to save changes.
PHP instruction for URL Encryption
The security token is formed by encrypting the destination URL followed by Base64 encode. The encryption method is TripleDES (ECB mode, IV 00000000). See the example below:
// Encrypt the url using your key
$url = mcrypt_encrypt(MCRYPT_3DES, $key, $url, MCRYPT_MODE_ECB, "00000000");
// base64 encode
$url = base64_encode($url);
print '<img src="http://images.thumbshots.com/image.aspx?...&xurl=' . urlencode($url) . '"/>'; |
.NET instruction for URL Encryption
The security token is formed by encrypting the destination URL followed by Base64 encode. The encryption method is TripleDES (ECB mode, IV 00000000). See the example below:
using System;
using System.Text;
using System.Security.Cryptography;
...
...
string url = "http://www.cnn.com";
TripleDESCryptoServiceProvider tripleDES = new TripleDESCryptoServiceProvider();
tripleDES.Padding = PaddingMode.Zeros;
tripleDES.Mode = CipherMode.ECB;
tripleDES.IV = Encoding.ASCII.GetBytes("00000000");
// Set your key
tripleDES.Key = Encoding.ASCII.GetBytes(myKey);
// Pass the URL you want to encrypt
byte[] bDecryptedData = Encoding.ASCII.GetBytes(url);
// Encrypt and convert to base64 encoded
url = Convert.ToBase64String(tripleDES.CreateEncryptor().TransformFinalBlock(bDecryptedData, 0, bDecryptedData.Length));
img.src = "http://images.thumbshots.com/image.aspx?...&xurl=" + Page.Server.UrlEncode(url); |
|
Key: Generate a new key
b5acbe95bf3a2257feac4949 |
|
|