am trying to block the user from seeing the real url and the id of each page

<a href="galleries.php?gallery_id=<?php echo $row_Recordset2['gallery_id']; ?>">  Click Here  </a>        

i tried to use urlencode function after the =
but it didnt work,when i click on it it never saw the id
what can i do to make the url invisible??
ausge is online now Report Post Reply With Quote

    If you're just trying to hide the link in the status bar, you can use javascript:
    <a href="url" onmouseover="self.status='Open Gallery'; return true;">

      thnxx it worked when i click on it ,but what about the address bar??

        Of course, if they wanted to know the URL of the page they're looking at they could just view the source. There just doesn't seem much point (beyond the stylistic) why one would want to hide it: if they don't know the URL they can't follow the link. And conversely, if they are to follow the link they have to know the URL.

        Need a bit more clarification of what "make the url invisible" means.

          If you wanted to make it "invisible" to the average user, you could use frames, the left frame being nearly invisible and the right being the rest of your content. The address bar would stay the same no matter what was clicked in the right frame. such as:

          <frameset framespacing=0 cols="1,*">
          <frame name="left" src="some blank page" scrolling="no" frameborder="no">
          <frame name="right" src="your data" scrolling="no" frameborder="no">
          </frameset>
          

          Use this in combination with the javascript status bar and most people won't know the url. Of course the smart ones can check the source.

            urlencode does nothing to obfuscate the URL, you simply cannot change it to something else and have it go someplace other than what that says. The only way to hide some of those variables is to have them as $POST variables instead of $GET. But this involves forms, and will only work if the user presses Submit on the form, ie. cannot get to a page directly.

              You could also use AJAX so that they never leave the page they're on...

                ausgezeichnete wrote:

                i want it o be encoded like hete for example

                That's not encoded: it just means that vBulletin's designers have planned their data structure out so that every post has a unique ID. Given that, they can find the post; the post knows which thread it's contained in; the thread knows in which forum it's contained in, and so on.

                Oh, and try using your browser's spellcheck a bit more, and maybe preview your posts: I know I'm not perfect, but at least I care about my readers and no-one's timing you.

                  it's quite strange you need to specify three parameters to open one data. isn't there an auto-increment id on your database that allows to identify the data you need to open with a single number?

                  anyway, a short alternative is to do:
                  http://localhost/mysite/slide.php?t=40&f=189&g=18

                  then you use $GET['t'], $GET['f'] and $GET['g'] instead of $GET[gallery_thumb_id'], $GET['gallery_fotos_id'] and $GET['gallery_id'], respectively

                    Write a Reply...