Block attachments from specific IP Address

Block attachments from specific IP Address

Requirement:
In few organisations, certain IP Address are refrained from creating requests with attachments.

Steps to configure:
  1. Goto Admin > Developer Space > Request Custom Functions > Global function > New > Paste the content from the attachment GF_4 - Configuration.txt and save it with a name.
  2. Update the URL and integration key in the script. 
    1. You can get the integration key under Admin > Integrations > Integration Key > New
    2. Please use an integration key with admin privilege, as there wont be any role related permission issues. 

    3. Update the integration key in the global function.
    4. https://help.servicedeskplus.com/api/rest-api.html$key

  3. Go to Admin > Developer Space > Request Custom Functions > Custom Actions > Paste the content from the blockAttachments.txt and save it with a name.
  4. Modify the global function name and the IP Address list in the script. 

  5. Configure custom trigger as below:



                  New to ADSelfService Plus?

                    • Related Articles

                    • Block attachments from certain IP Range

                      Requirement: In few organisations, certain IP Ranges are refrained from creating requests with attachments. Steps to configure: Goto Admin > Developer Space > Request Custom Functions > Global function > New > Paste the content from the attachment ...
                    • How to start ServiceDesk Plus on a single IP address/IP Binding

                      For customers running version 9.3 and below. 1. Goto Drive:\ManageEngine\ServiceDesk\server\default\conf\TrayIconInfo.xml and add "ipToBind" parameter to the following line:  <SDP-PROPERTIES RequestScheme="http" WebPort="8080"/>  Now the line would ...
                    • Query to show to Assets with their IP and MAC Address (MSSQL & PGSQL)

                      Tested in Build PGSQL (14300) or MSSQL (14306) SELECT productType.COMPONENTTYPENAME AS "Product Type", resource.RESOURCENAME AS "Asset Name", networkinfo.IPADDRESS "IP Address", networkinfo.macaddress "MAC Address", product.COMPONENTNAME AS ...
                    • Add attachments using API

                      Attachment cannot be added when a request is created, it can be only added after request creation URL : http://localhost:8080/api/v3/attachments?TECHNICIAN_KEY=XXXXXXXXX Body
                    • Update IP Address in Request additional field

                      Requirement: As per the application design, the IP address of the machine from which the request was created will be noted in the History tab.   Update this "IP Address" in a request additional field. Steps to configure: Goto Admin > Developer Space ...