Malicious File Upload Prevention in PHP Php by Rajesh Kumar Sahanee - February 10, 2020February 15, 20200 Hello Friends, today we’ll see malicious file upload prevention in PHP. If in our web application there is file upload feature then we should add this feature with precautions because this is a very easy way for any attacker to inject malicious code in our application.
Cross-Site Scripting Prevention in PHP Php by Rajesh Kumar Sahanee - February 9, 2020February 9, 20200 Hello Friends, Today we'll see Cross-Site Scripting Prevention in PHP. Cross-Site Scripting (XSS) is a web application Vulnerability in which attackers injects client site malicious scripts into web pages which then executes inside victims browser. To Prevent Cross-Site Scripting here we'll use htmLawed. htmLawed is PHP library to purify &
Click-Jacking Prevention in PHP Php by Rajesh Kumar Sahanee - February 3, 2020February 9, 20200 Hello friends, today we are going to learn Click-Jacking Prevention in PHP. Click-Jacking is technique by which user is tricked into clicking on something that is different from what user perceives, thus which can then reveal confidential information or can take control of their computer. In PHP we can prevent
Cross-Site Request Forgery (CSRF) Prevention in PHP Hacking Php by Rajesh Kumar Sahanee - February 1, 20200 Hello, friends today we are going to learn Cross-Site Request Forgery (CSRF) Prevention in PHP by using random token in each request. In Cross-Site Request Forgery (CSRF) attack the victim unintentionally sends web request that takes advantage of their logged in session on a particular site to leak server data,
Upload File to Google Cloud Storage using PHP Php by Rajesh Kumar Sahanee - January 22, 2020April 14, 20200 Hello Friends, It's being very long time and I haven't shared anything. But today I am going to share how to upload file to Google Cloud Storage using PHP. With the help of this code we can upload files from third party hosting as well as from localhost (wamp, lamp,
Adding Animations to Controls or Layouts in Android Android by Rajesh Kumar Sahanee - November 9, 2019November 9, 20190 Hello Friends, Today we are going to learn adding animations to controls or Layouts in Android. Recently I was working on an app in which I was required to add animation on a control's visiblility "gone" and "visible". So I used alpha method to achieve fade in and fade out
Android RecyclerView Swipe to Multiple Options Android by Rajesh Kumar Sahanee - November 3, 2019November 3, 20190 Hello Friends, Today I am going to share Android RecyclerView swipe to multiple options code. Recently I was working on an app in which I was required to add swipe to delete feature which I already shared in my previous post. But, while finding the solution for swipe to delete
Swipe To Delete and Undo Feature in Android RecyclerView Android by Rajesh Kumar Sahanee - October 29, 2019April 16, 20200 Hello Friends, Today I am going to share how to add swipe to delete and undo feature in Android RecyclerView. Recently I was working on an app in which I was required to add same swipe to delete feature. So, I googled and found the solution and modified it according
Android AlarmManager to Start Background Service Periodically Android by Rajesh Kumar Sahanee - October 26, 2019October 26, 20190 Hello Friends, Today I am going to share how to use Android AlarmManager to Start Background Service Periodically. The Alarm Manager holds a CPU wake lock which guarantees that the phone will not sleep until you have finished handling the broadcast. It can also be used to perform some repetitive
ImageView with Rounded Corners in Android Android by Rajesh Kumar Sahanee - October 25, 2019October 25, 20190 Hello Friends, Today I am going to share how to add ImageView with Rounded Corners in Android. Actually recently I was working on an app in which I had to set profile pic of user but with rounded corners. I struggled a lot for this simple thing, but found the