DEV Community

Cover image for Change any url file type: like customer.php to customer.[yourname]
manish srivastava
manish srivastava

Posted on

Change any url file type: like customer.php to customer.[yourname]

Hello friends,
You can do this by making little changes to your apache .htacess.

It's fun. You can show customer.php as customer.asp or customer.manish ( here Manish is my name).

You can use it in your production but

In general, security by obscurity is one of the weakest forms of security. But in some cases, every little bit of extra security is desirable.

A few simple techniques can help to hide PHP, possibly slowing down an attacker who is attempting to discover weaknesses in your system. By setting expose_php to off in your php.ini file, you reduce the amount of information available to them.

You can learn more about here...

https://www.php.net/manual/en/security.hiding.php

# Make PHP code look like unknown types
AddType application/x-httpd-php .bop .foo .133t

Please visit my profile for more articles.

IMP REQUEST:
You are most welcome to join my team

Alt Text

Click here for joining my team .

Also you are most welcome to join OPEN SOURCE INTELLIGENT SYSTEM (OSINT) if you can help in open source project regarding safeguarding humans from various diseases like CORONA outbreak
https://github.com/Manishfoodtechs/OSINTHRH/wiki

Contact email: Manishfoodtechs@gmail.com.

If you have any problem, our team is also engaged in professional consultancy and delivery.

Imagecredit: pixabay

Discussion (5)

Collapse
moopet profile image
Ben Sinclair

How does this relate to Javascript?

Collapse
manishfoodtechs profile image
manish srivastava Author

I believe if it can work with HTML then it should be with any client side . However, I have never tried but as per given link you can see they require html files extension should be renamed as desired

Collapse
moopet profile image
Ben Sinclair

It's just that you've tagged this specifically with #javascript?

Collapse
marcusatlocalhost profile image
Marcus

It would be nice if your self promotion would take up less space than the article itself. Thanks.

Collapse
manishfoodtechs profile image
manish srivastava Author

Regret the inconveniences. However, I am trying to build an OSINT for Human Race Health. It's just a call. This is kind of template. Size is fixed