get

modsecurity create rule disable GET request

故事扮演 提交于 2019-12-02 14:43:08
问题 I want to create a mod security2x rule that will block the GET request to a specific URL. for example I want to block the URL with the GET in the header: 'www.test.com' I've never made a rule within modsecurity, and not sure this will work with anomaly detection mode. This would be an example of the GET request: GET/secure/bla/test/etc/ This is what I have so far: SecRule ARGS "www.test.com" phase:2,log,deny,id:'1234',msg:'403 Access Denied' 回答1: You want something like this: SecRule REQUEST

“Ext.getCmp(…) is undefined” in different function

跟風遠走 提交于 2019-12-02 14:36:10
问题 I have Extjs code in view, this is it: createPanelMC: function() { this.requiredSign = '<span style="color:red;font-weight:bold" data-qtip="Required">*</span>'; var panel = Ext.create('Ext.form.Panel', { defaultType: 'textfield', name: 'nodebPanel', width: '100%', layout: { type: 'auto', align: 'stretch' }, items: [{ xtype : 'fieldset', name : 'modlayanan', title : 'Data Pelanggan', layout : 'column', width : '95%', margin : '10', items: [{ xtype : 'textfield', name : 'nomor', id : 'nomor',

How to use variable inside parameter $_GET? example: ($_GET[$my_var])

半腔热情 提交于 2019-12-02 14:24:53
问题 I'm developing a plugin for wordpress, the parameter of the $ _GET is recorded in the database according to the preference of the User via the Wordpress Admin Panel. The following validation has to be via the $ _GET, this is the function: $db_url = get_option('my_get_url'); // returns the value of the database entered by User // on this case return --> page=nosupport $url_explode = explode("=", $db_url); $url_before = $url_explode[0]; // --> page $url_after = $url_explode[1]; // --> nosupport

Angularjs multiple $http.get request

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 14:06:50
I need to do two $http.get call and I need to send returned response data to my service for doing further calculation. I want to do something like below: function productCalculationCtrl($scope, $http, MyService){ $scope.calculate = function(query){ $http.get('FIRSTRESTURL', {cache: false}).success(function(data){ $scope.product_list_1 = data; }); $http.get('SECONDRESTURL', {'cache': false}).success(function(data){ $scope.product_list_2 = data; }); $scope.results = MyService.doCalculation($scope.product_list_1, $scope.product_list_2); } } In my markup I am calling it like <button class="btn" ng

is response.redirect always an http GET response?

梦想的初衷 提交于 2019-12-02 14:06:41
问题 is response.redirect always an http GET response? or it could be POST?.... 回答1: In most API's the standard redirect implementation does a 302 which is indeed per definition GET. As per your question history you're familiar with ASP.NET, I'll however add examples for Java Servlets as well. ASP.NET: Response.Redirect("http://google.com"); Servlet: response.sendRedirect("http://google.com"); It implicitly sets the response status to 302 and the Location header to the given URL. When the current

Form GET works, Form POST does not

巧了我就是萌 提交于 2019-12-02 13:43:07
I have a simple form that behaves as expected when method="GET" , but when method="POST" , it does not. FORM: <form action="/login" method="POST"> <input type="text" name="user" maxlength="30" value=""> <input type="password" name="pass" maxlength="30" value=""> <input type="hidden" name="sublogin" value="1"> <input type="submit" value="Login" /> </form> If I echo the variables to the screen ( var_dump( $_POST ) or var_dump( $_GET ) ), when method="POST", I get an empty array. When method="GET" I get an array with the appropriate name/value pairs (user, pass, sublogin...) Things to know:

Get cookies in php? [duplicate]

大憨熊 提交于 2019-12-02 13:41:20
Possible Duplicate: It is possible to insert data in two different table in mysql by one insert query php? I have some users information saved in cookie, the users information are like this, Fname:Muhammad,Lname:Riaz,title:Developer,org:MagicLamp,email:riaz@yaho.com I want to insert these information in to mysql database , The problem is this how can I get these information from cookie and insert into database It looks like you're only creating one cookie, "user_token", which contains the serialized information you want. I think you want your foreach to iterate over the unserialized "user

$_GET . Undefined Variable. Cant find solution [closed]

青春壹個敷衍的年華 提交于 2019-12-02 13:40:57
I'm having an issue and am out of ideas. I'm trying to get a parameter from the URL, but PHP insists in saying that the variable is not defined. The URL is http://localhost/trendwatcher/index.php?date=2014-10-18 And the script is something like <?php include "header.php"; ?> <section id="stats"> Showing trends for <?php echo $GET_["date"]; ?> </section> And finally, the error: Showing trends for Notice: Undefined variable: GET_ in C:\xampp\htdocs\trendwatcher\index.php on line 4 Does anyone have any ideas? Thanks! Fix your code from: <section id="stats"> Showing trends for <?php echo $GET_[

Combine $_GET variables before Submit [closed]

落爺英雄遲暮 提交于 2019-12-02 13:37:30
I am not really sure if this is possible but here is the problem I cant figure out. Have a from that results in the this link. End result Link. http://www.website.com/index.php?a=price_range_A_B I can not use a from but i can use Input fields. Any ideas? EDIT : Since the OP changed the question I have updated my answer below. I am putting an example of how you could do this. <?php $action_path = "index.php"; ?> <script type="text/javascript"> function submitData() { var a = null; var _A = document.getElementById("_A").value; var _B = document.getElementById("_B").value; a = "price_range_" + _A

ASP.NET page POST only access

久未见 提交于 2019-12-02 13:27:01
问题 I was wondering if it is possible to restrict access to an ASPX page to http POST request method only? This restricted page will be used to render some complex content. I want to use it for ajax calls which will return that content into a div on another page. Is it possible to disable GET requests so that users won't be able to access it via URL in their browser by accident? 回答1: You can't prevent user from making a GET request. You can choose on server that you won't serve those. For example