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

No comments posted yet

Your Answer:

Login to answer
52 Like 53 Dislike
Previous forums Next forums
Other forums

Where am I going wrong
Been trying to work this out for hours

I have two tables called 'Genres' and 'Films'. Genre

Any Good MMORPGs you've played?
I'm about to have ALOT of free time on my hands (finished highschool) and I need something to fill t

php redirecting
i wont open a new thread but i have a question about redirecting....
i wonder why my code doesnt

Validation
Hello

I know this is a really vag question.

I need to have a input field on a form th

Get word number x from string?
How can I use a function to loop through a string, and "have a look at" every word in the

PHP - MySQL Fail
My PHP code will only execute the first part of my code...

Code: <?php

sessio

button.click += new eventhandler() not works in if(!ispostback)
i want to use button.clcik event in function VIewScrap() which is called in if(!ispostback) but itdo

Will an XHTML DOCTYPE interfere with my PHP if I'm not experienced enough?
I've read this article here: http://friendlybit.com/html/why-xhtml-is-a-bad-idea/

In a nutshe

Issues: PHP Forms -Clearing
I've tried looking online before actually asking for help, but I've been looking for about the past

Warning: mysql_num_rows() expects parameter 1
When i add quote at the end of this link
example:http://localhost/articlemania/category.php?cid=3

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