MirazMac

Untitled

Jun 13th, 2021
553
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.         $blockedQueries = ["query1", "query2"];
  3.  
  4.         if (in_array($query, $blockedQueries)) {
  5.             if (is_ajax()) {
  6.                 return json(['redirect' => url_for('site.home')]);
  7.             }
  8.  
  9.             return redirect_to('site.home');
  10.         }
  11.  
  12.  
  13.  
RAW Paste Data