Also if you want to actually hide the url in the address bar - This technique is called 'Phishing' (http://www.fraudwatchinte
garreh :)
Main Topics
Browse All TopicsHi all experts,
I want a solution that can help me in one of the following:
how to hide the URL of a page in a folder in my website like (www.mysite.com/mypage.htm
I want to hide this address from useres to not to know the page URL
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Also if you want to actually hide the url in the address bar - This technique is called 'Phishing' (http://www.fraudwatchinte
garreh :)
garreH,
Not always. Hiding an URL is always not malicious. Sometimes you have a personal website with a provider with long long names like http://www.freewebhostingp
Basically what they do is put a small FRAMESET with 0%, 100% frames. 0% frames is about:blank and 100% frames is your homepage URL.
Now the user will be having the flexibility of a shorter URL.
Check out this implementation of URL Cloaking also: http://www.thecodeproject.
But the author is intending to hide the page Name, which is also known as URLRewriting. There are a lot of MSDN Sample Implementations on URL Rewriting.
http://www.codeproject.com
Thanks for all especially deepaknet
But I really cann't use frames and I can't use ASP.Net.
I'm working on PHP on Apache Server,
And I really looking to hide the page name same as deepaknet describe but with PHP code that can implemented into htm or even by Apache .htaccess code.
The normal page is www.mysite.com/success.htm
Thanks alot and waiting for your help
Well I'm assuming you wish to hide the URL because of security. And if its a private URL that you do not want certain people to access then use the .htaccess file (tutorial link given above) - and create some kind of login system.
I could not see any other reason to 'hide a url' - with the exception of malicious phishing activites
garreh
I tell you what the reason I want to hide
I've an exam online for poeple to take and then when the exam finish it redirect them to URL
www.mysite.com/success.htm
this page will send me mail that this guy has passed the exam
So if they know the page name, it'll be easy to write in in the browser and pass the exam without taking it, that's why I want to hide the page name
Please waiting for your help
elguindy if you simply hide the url your exam system will easily be compromised. I think you are going about this the wrong way. You need to have a system where if a user accesses success.html but has not passed the exam then it will display a forbidden page error. You can do this with PHP with sessions, for example. Its silly to be hiding urls. :)
garreh
Ok, tell me how we agree and I know it's silly but I don't have time to make full system with PHP,
so we return the problem to naother point and update the question
HOW CAN I PROTECT THE SUCESS PAGE with SESSION IN PHP and keep in mind that the student will get user name and password to acess the exam via .htacess password technique, so I cn't make session
If you can tell me how can I protect this success page to be viewed in session with php I'll appreciate that and I'll grant you the 500 points
thanks in advance
With sessions you would put this code in when the user has answered the questions correctly:
"
<?php
session_start();
$_SESSION['passedexam'] = 1;
?>
"
in the success.php page:
"
<?php
session_start();
if (isset($_SESSION['passedex
echo 'Congratulations on passing the exam!';
}
else {
echo '<H1>403 Forbidden</H1>';
}
?>
"
garreh
Business Accounts
Answer for Membership
by: garreHPosted on 2006-02-20 at 11:09:44ID: 16002576
You cannot hide urls. Instead, you can give access permissions to folders and files on your site. To do this refer to this tutorial for use of the .htaccess file: http://www.javascriptkit.c om/howto/h taccess.sh tml (for apache)