Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  hide of url in the status line

phpMyEdit General     hide of url in the status line
Odoslať novú tému   Odpovedať na tému    
 
gdickm     Založený: 06.03.2008   Príspevky: 4  
Príspevok Zaslal: 2012-02-27 19:52
Návrat hore  Odpovedať s citátom     

Hello,
is it possible to hide an url in the status line of the browser like http://....php?id=12345.
So it is possible to see the id number and someone could suppose the next id.

I need something like "method post" within
$opts[’fdd’][’col_name’][’URL’] = ’http://...?id=$key’;

Is an other strategy possible to prevent an automatic mass download of data.

TIA
Gerd

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2012-02-28 15:45
Návrat hore  Odpovedať s citátom     

Given that browser functionality cannot be altered, you will probably need to either filter user access to specific record id's or else hack the class file so that id's appearing in links are encrypted when created and decrypted when requested.

Denying access to unauthorized records is safest and probably easiest to implement, using the filter option.

For example, individual pages in my content management system have a user level in the range of 0-9. Users also have a user level in the range of 0-9. The auto generated page navigation links will suppress the display of links when the page's user level is higher than that of the logged-in user's user level. Thus a page defined as user level 9 can only be viewed by users who have a user level of 9. Another page property is `mli` (must log in) which is used to suppress the display of certain pages if an authorized user is not logged in.

 
gdickm     Založený: 06.03.2008   Príspevky: 4  
Príspevok Zaslal: 2012-02-28 17:58
Návrat hore  Odpovedať s citátom     

Hi Doug,
Thanks alot for your quick answer. I think that I understand your hints.
The page should be public! But I don't want, that somebody takes the url, by help of a program changed the id at the end and loads the whole datebase.

A good idea is to encrypt the id.
Nobody could guess the next id.

Can you help be with this hack? Are there already examples in the forum?

Additionally I only allow the call of the url within my program module. (referer...)
I also hack the class file so that a user only could see 1 page (15 Lines) at a time.

TIA
Gerd

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2012-02-28 18:05
Návrat hore  Odpovedať s citátom     

No, I can't help, it would be a daunting task and there probably aren't any examples. It might be easier to use UUID which is a MySQL function. Switch from numeric id to UUID ... MySQL's site is unreachable at the moment ... but perhaps a SQL query issued on a new field would generate unique strings to serve as the new identifier.

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2012-02-28 18:06
Návrat hore  Odpovedať s citátom     

http://kekoav.com/blog/36-computers/58-uuids-as-primary-keys-in-mysql.html

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov