Jump to content

Securing the INCLUDE again external URL


Guffi

Recommended Posts

Hi

The PHP code is like this in the index-file:

include($id);

How can I secure it, so $id does not contaion an external link (which could do some harm)
I have tried this: if (stristr($id, 'http') == TRUE) { exit("Hacking - STOP!!"); }

But this test only work in my brower and does NOT stop from phishing :-(

Can someone please help me out here !!??


Link to comment
https://forums.phpfreaks.com/topic/35567-securing-the-include-again-external-url/
Share on other sites

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.