Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
rafamp
Regular
Regular


Joined: Oct 15, 2005
Posts: 92
Location: Brazil

PostPosted: Mon Nov 07, 2005 11:16 am Reply with quote

hi

how can i encrypt encyclopedia terms? its d*** easy to steal content:

modules.php?name=Encyclopedia&op=content&tid=4

just change to

modules.php?name=Encyclopedia&op=content&tid=5

and you will get the next term to steal....

how can i encrypt like:

modules.php?name=Encyclopedia&op=content&tid=45893shds3#sds

?
 
View user's profile Send private message MSN Messenger
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon Nov 07, 2005 3:44 pm Reply with quote

Well you'd have to MD5 all the output for $tid.
To do the query, you'd have to check the correct term in the query

Need to add to the query something like
Code:


WHERE MD5($tid) = MD5(tid)

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
rafamp
PostPosted: Tue Nov 08, 2005 5:35 pm Reply with quote

there is the following code:

modules/Encyclopedia/index.php

Code:
         $tid = intval($row3['tid']);


Code:
         echo "<tr><td><a href=\"modules.php?name=$module_name&amp;op=content&amp;tid=$tid\">$title</a></td></tr>";


Code:
function content($tid, $ltr, $page=0, $query="") {


Code:
   $tid = intval($tid);


Code:
   $ency = $db->sql_fetchrow($db->sql_query("SELECT * FROM ".$prefix."_encyclopedia_text WHERE tid='$tid'"));


Code:
      $db->sql_query("UPDATE ".$prefix."_encyclopedia_text SET counter=counter+1 WHERE tid='$tid'");


Code:
href=\"modules.php?name=$module_name&amp;op=content&amp;tid=$tid&amp;page=$next_pagenumber$fromsearch\">"._NEXT."


Code:
href=\"modules.php?name=$module_name&amp;op=content&amp;tid=$tid&amp;page=$next_pagenumber\"><img src=\"images/right.gif\" border=\"0\" alt=\""._NEXT."\" title=\""._NEXT."\"></a>";


Code:
href=\"modules.php?name=$module_name&amp;op=content&amp;tid=$tid&amp;page=$previous_pagenumber$fromsearch\"><img src=\"images/left.gif\" border=\"0\" alt=\""._PREVIOUS."\" title=\""._PREVIOUS."\"></a>


Code:
href=\"modules.php?name=$module_name&amp;op=content&amp;tid=$tid&amp;page=$previous_pagenumber$fromsearch\">"._PREVIOUS." ($previous_pagenumber/$pageno)</a>";


Code:
   case "content":

   content($tid, $ltr, $page, $query);


11 entries, wich shoud i change???
 
rafamp
PostPosted: Tue Nov 15, 2005 4:11 pm Reply with quote

i still need it guys =/
 
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Tue Nov 15, 2005 6:32 pm Reply with quote

How do you expect using an encrypted ID to stop anyone from "stealing" content? They can find the encrypted link easily enough, and use that instead of an integer ID...

_________________
I google, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
rafamp
PostPosted: Tue Nov 15, 2005 7:25 pm Reply with quote

ehhh?

i just want to stop this:

modules.php?name=Encyclopedia&op=content&tid=203

modules.php?name=Encyclopedia&op=content&tid=204

this way anyone will steal stuff EASILY
 
kguske
PostPosted: Tue Nov 15, 2005 7:46 pm Reply with quote

How is that any different than (with the MD5 values for 203 and 204, respectively):

modules.php?name=Encyclopedia&op=content&tid=e2c0be24560d78c5e599c2a9c9d0bbd2

modules.php?name=Encyclopedia&op=content&tid=274ad4786c3abca69fa097b85867d9a4

?

As long as there is a link to the content on your site, people will be able to access it easily.
 
rafamp
PostPosted: Wed Nov 16, 2005 9:50 am Reply with quote

listen, i know what i am doing; please, can you help me?
 
kguske
PostPosted: Wed Nov 16, 2005 12:49 pm Reply with quote

I'd like to help, but I don't understand what you want to do.
 
rafamp
PostPosted: Wed Nov 16, 2005 3:47 pm Reply with quote

do what u posted

modules.php?name=Encyclopedia&op=content&tid=e2c0be24560d78c5e599c2a9c9d0bbd2

instead of

modules.php?name=Encyclopedia&op=content&tid=203

understood?
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©