Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 132,605 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 914 people online right now. Registration is fast and FREE... Join Now!




how encrypt all url?

 
Reply to this topicStart new topic

how encrypt all url?

jason213123
post 10 Jul, 2008 - 11:35 AM
Post #1


New D.I.C Head

*
Joined: 1 Mar, 2008
Posts: 11



Thanked 1 times
My Contributions


hi,
how can i encrypt the url/link of my site
for example:
normal link: www.teste.com/index.php?teste=aa&opt=33

encrypt:
www.teste.com/index.php?jksdhfskjdhf76%3453457

i have seen some sites using a url similiar to this there is any apache modification that i need do to?
i using php,apache
thanks for your help
User is offlineProfile CardPM

Go to the top of the page

JBrace1990
post 11 Jul, 2008 - 07:35 AM
Post #2


D.I.C Regular

Group Icon
Joined: 9 Mar, 2008
Posts: 474



Thanked 21 times

Dream Kudos: 350
My Contributions


URL Encode is just about the best you can get... unless you make your own hashing/dehashing system
User is offlineProfile CardPM

Go to the top of the page

didgy58
post 11 Jul, 2008 - 08:03 AM
Post #3


D.I.C Head

**
Joined: 23 Oct, 2007
Posts: 170



Thanked 1 times
My Contributions


could you not also use a .htaccess file to re write the url so that it looks differnet so for instance instead of

CODE

www.something.com/index.php?this=that.

you could have

www.something.com/index.php/page_that



i know the mod rewriting can be done with .htaccess as im fixing a site now that has been built that is doing, confused me at first when i was looking for things, still not 100% sure how it works i guess its something i need to have a good look into.
not sure if this might help at all

User is offlineProfile CardPM

Go to the top of the page

EvinOwen
post 11 Jul, 2008 - 12:22 PM
Post #4


New D.I.C Head

*
Joined: 1 Jul, 2008
Posts: 8



Thanked 1 times
My Contributions


url encode isnt going to 'encrypt' your url...

i would suggest what didgy58 said... mod_rewrite, because it will hide the details of the php, but also make your links easy to read. BUT i guess it depends on why exactly you want to encrypt it... i mean, are you trying to keep them only accessible to curtain users, but still allow them to bookmark them? because you could just use post data if they dont need to bookmark.

you can go here to find some more info mod_rewrite... but if you want to use it you will need some knowledge of regular expressions.

anyway, more details please!
User is offlineProfile CardPM

Go to the top of the page

ellisgl
post 17 Jul, 2008 - 05:45 AM
Post #5


D.I.C Head

**
Joined: 10 Nov, 2007
Posts: 65



Thanked 1 times
My Contributions


You would have to use a two way encryption. Look at using mcrypt.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 02:24AM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month