Jump to content

How to prevent link from showing on hover


geroid

Recommended Posts

Hi

I was wondering if anyone knows about something I noticed on websites. I have just uploaded a website to the host that I designed for an organisation. If you hover over any link, the full address appears on the bottom left of the screen. This is normal. Like:

http://www.domainname.com/index.php

 

However I have noticed that on other site they seem to be able to hide the page name somehow so that whatever link you hover over all you get is e.g.:

 

http://www.google.ie/services/

 

or

 

http://office.microsoft.com/en-gb/products/

 

As you can see there is no html or php page name. I would like to do this as it seems to me a better security feature. Any ideas how it's' done?

 

Thanks

first off this isn't a php question

 

2nd, how is that any more secure?

 

3rd, usually servers are setup to automatically look for index.html or index.php or index.whatever so when you do

 

http://www.somesite.com/  in your href="..." it should automatically look for it.

It's very like done with apache mod rewrite. This allows for URLs to be changed. So when a user enters a URL following a certain pattern, the server produces the page that matches that pattern, even though the URL typed in wasn't for that page.

 

Or it could be as the above poster says.

Re-read his post - he's not talking about hiding the whole link, just about 'hiding' the page name, which I suspect is just the url rewrite on whatever site he's talking about. Or it may be as the poster before me mentioned, it's just a matter of the 'index.html' being automatically appended based on server settings.

I know that's what he's referring to - I got it from his original post. But look what he wrote:

 

  Quote
However I have noticed that on other site they seem to be able to hide the page name somehow so that whatever link you hover over all you get is e.g.:

 

http://www.google.ie/services/

 

or

 

http://office.microsoft.com/en-gb/products/

 

As you can see there is no html or php page name.

 

He just wants to hide the actual file name. He is describing it strangely, by speaking of hovering over the link and seeing the link destination in the bottom of the browser, but what he is speaking of keeping the whole link, minus the page name. Which is done with URL rewrite.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.