Ben üzerinde çalışıyorum bir web sitesinde. Htaccess RewriteRule kullanıyorum.
İşte benim. Htaccess bir örnek
RewriteEngine on
RewriteRule ^about.htm$ /index.php?load=about&output=html [NC]
I would like to know if there is a way in my index.php file to detect
if the page have been called via a Rewrite or the user reached it
directly. I'm trying to avoid having to write some security check that
I am not even sure where to start.
If there is no way to make that "check" where should I start to secure the file ?
My guess would be to make sure only load and output are
passed to the $_GET, make a strip_tags(), trim(), stripslashes() and remove quotes.
Teşekkür ederiz!