Jump to content

Filter url


mmarif4u

Recommended Posts

I want to filter some urls on my site.

for example:

http://localhost/CMS/db.php?rand=3af7e4c440a43bde0a308839218a2b63e28d81aa&action=t

The above url has 82 characters long.

If for example some one add something to it:

http://localhost/CMS/db.php?rand=3af7e4c440a43bde0a308839218a2b63e28d81aa&action=t&do=select * from table

This is just example.

So how can i filter that url to just allow rand and action,which i already filter.but adding new GET is possible to write there.

I know about strlen and filter_var.but i dont think that will solve this problem.

 

Any ideas...

Arif

Link to comment
https://forums.phpfreaks.com/topic/114980-filter-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.