Jump to content

Using rename_function() for security purposes


roopurt18

Recommended Posts

I'm curious if anyone has used PHP's rename_function() to increase security for their site.  Apache can be set to execute scripts before and after every request, so why not rename certain functions, such as mysql_query(), to company specific names that only the developers know.  Then you could create a new mysql_query() function that logs user information.

 

Does anyone else think that could help increase site security?

Link to comment
Share on other sites

I completely agree; however, it's impossible to make a site completely secure.  The best we can hope for is to make it difficult enough that only the most clever individuals can bypass security measures.

 

The suggestion I started this topic with would really only be used in the more extreme situations, such as protecting bank or credit card information IMO.

Link to comment
Share on other sites

Most security issues are caused by input, these aren't circumvented by changing function names. The only scenario in which it may be useful is code injection, but I'm afraid renaming a few functions won't do you any good if an attacker can inject arbitrary code.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.