Help, Base64 encoding url and decoding server side.


Posted on 16th Feb 2014 07:03 pm by admin

Hello everyone, i have a website with videos and games and also provide an embed code which people can use to embed the games and videos on their website.
My problem is that alot of people would embed the files but they would delete the link back to my website and bandwidth isnt cheap

I have been reading for the last few hours about encoding, decoding, base64, md5 and basically a way to encrypt or encode the embed code so people can still use it but they wont be able to remove the link since they cant read what the embed code says

Is there any way to do that or use different method to just hide the code but still work on other websites ?
Also is there any way to make the urls to my files encoded, example:

http://www.mywebsite.com/games/action/mygame.swf

Encode it to look something like this:

http://www.mywebsite.com/index.php?game=3475348j345h345gsed6645
(Just like the youtube urls are)
I am sure its possible but i just couldn't find and examples of how its done or even a tutorial.
Please someone help me, i am still learning php so i am not very good at writing my own functions

52 Like 53 Dislike
Previous php-forum Next php-forum
Other php-forum

$_POST variable un-useable
I'm trying to use a $_POST variable in a mysql update statement but i can't use it for some unknown

GET vs SUBMIT Button to show sections on one index.php page?
Just curious if one of these ways is better (i.e. more efficient) than the other.

I have a

Posting to another Site?
I have software that people install.
When they install it, is there a way to make it post their d

pagination - need help on passing of search query.
Hi, i have been trying for days but couldn't get this sorted out. Would like some professional help

User registration and login
I don't know whether this is the correct forum, if not i apologise but am pretty desperate at the mo

Am i doing this wrong?
Im pulling from an Oracle database some info... one of which is a field count_pnums which is a NUMBE

Slow data retrieval which requires improvement..please help
I am working on a Help Desk Ticketing system and have a page called MY TICKETS which shows all ticke

Help with Contact Form
I have this Form on an html page and the associated code on page.php (below).
I keep getting the

array ...
hi
Code: function formatCategories($categories, $parentId)
{
// $navCat stores all child

Online Event Ticket Sales
Has anyone wrote a script for online tickets sales?

I have been googling and found lots of th

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash