1 Answers
প্রথমেই আপনার রুট ফোল্ডারের .htaccess ফাইলটি ওপেন করে নিচের কোডটুকু পেস্ট করুন।
# protect from sql injection
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
- এবার .htaccess ফাইলটি সেভ করুন।
- ব্যাস, তাহলেই আপনার সাইট SQL injection থেকে নিরাপদ হয়ে যাবে। যদিও খুব সহজ তবুও এটি আপনার সাইটকে অনেক সিকিউর করে তুলবে, ধন্যবাদ।
2529 views
Answered
Related Questions
Next steps
- Find a doctor for in-person or online consultation
- Browse medical tests patients often ask about
- Check medicine information (uses, dosage, brands in Bangladesh)
- More health Q&A on Bissoy