how to hid the fact that webpage is written in php
Moderator: General Moderators
-
vidyasingh
- Forum Newbie
- Posts: 1
- Joined: Fri May 30, 2008 11:53 am
how to hid the fact that webpage is written in php
Hi,
How to hid the fact that webpage is written in php.
Thanks,
Vidya
How to hid the fact that webpage is written in php.
Thanks,
Vidya
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: how to hid the fact that webpage is written in php
The easiest is probably to rewrite URL and use a Front Controller. Many PHP frameworks support this. Search for "clean URLs".
(#10850)
Re: how to hid the fact that webpage is written in php
Whenever I see a question like this, I have to ask, What problem are you trying to solve?vidyasingh wrote:Hi,
How to hid the fact that webpage is written in php.
Thanks,
Vidya
Re: how to hid the fact that webpage is written in php
I'm curious too... what is the point?
Re: how to hid the fact that webpage is written in php
I would think it's a security measure to prevent an attacker from even knowing what language the site is in. There are other reasons too, most of which aren't ethical.
Re: how to hid the fact that webpage is written in php
Apache mod_rewrite is the perfect man for that job, but note: I must understand regular expression before you can work with that module.Hi,
How to hid the fact that webpage is written in php.
Thanks,
Vidya
Google it. ‘rewriting URL with Apache’
Re: how to hid the fact that webpage is written in php
joefazee wrote:Apache mod_rewrite is the perfect man for that job, but note: I must understand regular expression before you can work with that module.Hi,
How to hid the fact that webpage is written in php.
Thanks,
Vidya
Google it. ‘rewriting URL with Apache’
Code: Select all
RewriteEngine On
RewriteRule (.*).html $1.php
-
SomeoneE1se
- Forum Newbie
- Posts: 20
- Joined: Sat May 31, 2008 2:53 am
Re: how to hid the fact that webpage is written in php
if you have access to the apache/php configs you could add .1337 to the list of scripts handled by php so index.1337 would work the same as index.php (if you have you dir list also configured correctly)
just look for
AddHandler x-httpd-php5
and add .1337 to the end
just look for
AddHandler x-httpd-php5
and add .1337 to the end
Re: how to hid the fact that webpage is written in php
On sharing hosting you could use the .htaccess file:
Where php5 is the handler defined in php.ini (if it doesn't work try something like php, php4 etc.)
I've been successfully using it with startlogic.com to use PHP5 for processing *.php files, which otherwise would have been processed by PHP4.
Code: Select all
<FilesMatch .exten>
SetHandler php5
</FilesMatch>
I've been successfully using it with startlogic.com to use PHP5 for processing *.php files, which otherwise would have been processed by PHP4.
There are 10 types of people in this world, those who understand binary and those who don't
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
Re: how to hid the fact that webpage is written in php
Also, don't forget to remove the X-Powered-By header. (expose_php = Off)
Re: how to hid the fact that webpage is written in php
Security through obscurity is not security.astions wrote:I would think it's a security measure to prevent an attacker from even knowing what language the site is in. There are other reasons too, most of which aren't ethical.
Re: how to hid the fact that webpage is written in php
LSJason wrote:Security through obscurity is not security.
Re: how to hid the fact that webpage is written in php
(Even more off topic) I didn't meant to imply that you thought it was the only method...just pointing it outastions wrote:LSJason wrote:Security through obscurity is not security.I never said it was. I meant that it's possible the OP wanted to hide the source language for that reason. It is however one of many security techniques that can be used, and I don't see anything wrong with adding it as an additional layer of security to an existing system. If my memory serves, it's commonly used by financial institutions.
-
SomeoneE1se
- Forum Newbie
- Posts: 20
- Joined: Sat May 31, 2008 2:53 am
Re: how to hid the fact that webpage is written in php
I can think of a very good reason,
he's working for a stubborn client who demands it be created in asp for no other reason then he likes page.asp better then page.php
he's working for a stubborn client who demands it be created in asp for no other reason then he likes page.asp better then page.php
Re: how to hid the fact that webpage is written in php
Wow that's funny. Using mod_rewrite to parse .asp as .php. He'll be really happy in a few years when the next programmer tells him it's PHP lol.