Stock Plans - Additional Information (Detail) | Jan. 01, 2016shares | May 31, 2016shares | Oct. 31, 2015shares | Aug. 31, 2014shares | Nov. 30, 2013shares | Jan. 31, 2012 | Sep. 30, 2011Periodshares | Jun. 30, 2016USD ($)$ / sharesshares | Jun. 30, 2015USD ($) | Mar. 31, 2015USD ($)$ / sharesshares | Jun. 30, 2016USD ($)$ / sharesshares | Jun. 30, 2015USD ($) |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Number of stock option outstanding, granted | | | | | | | | 0 | | | 48,260 | |
Performance-based restricted stock units granted | | | | | | | | | | | 875,438 | |
Capitalized stock-based compensation expense | $ | | | | | | | | | | | $ 0 | $ 0 |
Recognized stock-based compensation tax deficiencies (benefits) | $ | | | | | | | | $ 10,000 | $ (43,000) | | 14,000 | (43,000) |
Aggregate net proceeds from sale of common stock, net of underwriting discounts, commissions and offering costs | $ | | | | | | | | | | | 5,682,000 | 9,789,000 |
Underwriting discounts, commissions and other offering expenses | $ | | | | | | | | | | | $ 112,000 | $ 0 |
Follow-On Public Offering [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Issuance of common stock, shares | | | | | | | | | | 3,450,000 | | |
Sale of common stock, price per share | $ / shares | | | | | | | | | | $ 39 | | |
Aggregate net proceeds from sale of common stock, net of underwriting discounts, commissions and offering costs | $ | | | | | | | | | | $ 127,900,000 | | |
Underwriting discounts, commissions and other offering expenses | $ | | | | | | | | | | $ 6,700,000 | | |
Skyfence Networks Ltd. [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Nonvested awards, compensation cost not yet recognized, period for recognition | | | | | | | | | | | 4 years | |
Business acquisition purchase price, shares issued | | | | | | | | | | | 532,262 | |
Closing price of stock | $ / shares | | | | | | | | $ 59.08 | | | $ 59.08 | |
Common stock, shares vested | | | | | | | | | | | 236,537 | |
Restricted Stock Units for Common Stock [Member] | Incapsula [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Shares issuable, as-converted to common stock-basis | | | | | 198,825 | | | | | | | |
Outstanding Options and RSUs [Member] | Incapsula [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Shares issuable, as-converted to common stock-basis | | | | | | | | | | | 247,184 | |
2003 Stock Plan [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Increase in reserve share | | | | | | | 955,568 | | | | | |
2003 Stock Plan [Member] | Stock options [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Maximum percentage of fair value of common stock on grant date | | | | | | | | | | | 85.00% | |
2003 Stock Plan [Member] | Stock options [Member] | Maximum [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Expiration period | | | | | | | | | | | 10 years | |
2003 Stock Plan [Member] | Stock options [Member] | Minimum [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Vesting period | | | | | | | | | | | 4 years | |
2003 Stock Plan [Member] | Greater 10% Ownership [Member] | Stock options [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Maximum percentage of fair value of common stock on grant date | | | | | | | | | | | 110.00% | |
Minimum percentage of combined voting power | | | | | | | | | | | 10.00% | |
2011 Stock Option and Incentive Plan [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Reserve of common stock for future issuance | | | | | | | 1,000,000 | | | | | |
Increase in reserve share | | 1,300,000 | | | | | | | | | | |
Increase percentage of common stock outstanding | | | | | | | | | | | 4.00% | |
2011 Stock Option and Incentive Plan [Member] | Stock options [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Maximum percentage of fair value of common stock on grant date | | | | | | | | | | | 100.00% | |
Expiration period | | | | | | | | | | | 10 years | |
2011 Stock Option and Incentive Plan [Member] | Restricted Stock Units for Common Stock [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Vesting period | | | | | | | | | | | 4 years | |
Description of vesting terms | | | | | | | | | | | The Company also grants RSUs, which generally vest over either a four-year period with 25% vesting at the end of one year and the remainder vesting quarterly thereafter or they completely vest at the end of a three-year period. | |
2011 Stock Option and Incentive Plan [Member] | Restricted Stock Units for Common Stock [Member] | Share-based Compensation Award, Tranche One [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Vesting percentage at the end of period | | | | | | | | | | | 25.00% | |
2011 Employee Stock Purchase Plan [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Reserve of common stock for future issuance | | | | | | | 500,000 | | | | | |
Increase in reserve share | 318,371 | | | | | | | | | | | |
Increase percentage of common stock outstanding | | | | | | 1.00% | | | | | | |
Program effective date | | | | | | | Nov. 8, 2011 | | | | | |
Percentage in payroll of deduction base salary to acquire shares of common stock | | | | | | | 15.00% | | | | | |
Offering period | | | | | | | 24 months | | | | | |
Percentage of fair value of common stock on offering period | | | | | | | 85.00% | | | | | |
Number of years, shares reserved for issuance increase | | | | | | 8 years | | | | | | |
2011 Employee Stock Purchase Plan [Member] | Maximum [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Reserve of common stock for future issuance | | | | | | | 20,000,000 | | | | | |
Number of purchase periods for offering | Period | | | | | | | 5 | | | | | |
Inducement Stock Option Plan And Agreement [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Description of vesting terms | | | | | | | | | | | In accordance with the terms of the Inducement Option Plans, the Company issued options to purchase up to 290,000 shares of the Company’s common stock at an exercise price equal to the fair market value of a share of the Company’s common stock on the dates of grant of the options. The options, which have a ten-year term, vest at the rate of 25% of the shares on each of the first anniversary of the vesting commencement date with an additional 6.25% of the shares subject to the option vesting each quarter thereafter so long as the participant has not been terminated. | |
Number of stock option outstanding, granted | | | | 290,000 | | | | | | | | |
Inducement Stock Option Plan And Agreement [Member] | Share-based Compensation Award, Tranche One [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Vesting percentage at the end of period | | | | 25.00% | | | | | | | | |
Inducement Stock Option Plan And Agreement [Member] | Quarterly Vesting [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Vesting percentage at the end of period | | | | 6.25% | | | | | | | | |
Inducement Restricted Stock Unit Plan and Agreement [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Description of vesting terms | | | | | | | | | | | In accordance with the terms of the Inducement RSU Plans, the Company issued RSUs representing a total of 290,000 shares of the Company’s common stock. The RSUs, which expire following settlement, vest at the rate of 25% of the shares on each of the first anniversary of the vesting commencement date with an additional 6.25% of the shares subject to the RSU vesting each quarter thereafter so long as the participant has not been terminated. | |
Shares available for grant | | | | 290,000 | | | | | | | | |
Inducement Restricted Stock Unit Plan and Agreement [Member] | Share-based Compensation Award, Tranche One [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Vesting percentage at the end of period | | | | 25.00% | | | | | | | | |
Inducement Restricted Stock Unit Plan and Agreement [Member] | Quarterly Vesting [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Vesting percentage at the end of period | | | | 6.25% | | | | | | | | |
2015 Equity Inducement Plan [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Reserve of common stock for future issuance | | | 100,000 | | | | | | | | | |
2015 Equity Inducement Plan [Member] | Stock options [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Maximum percentage of fair value of common stock on grant date | | | 100.00% | | | | | | | | | |
Expiration period | | | 10 years | | | | | | | | | |
Incapsula 2010 Share Incentive Plan [Member] | Maximum [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Reserve of common stock for future issuance | | | | | 10,263,211 | | | | | | | |
Incapsula 2010 Share Incentive Plan [Member] | Restricted Stock Units for Common Stock [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Performance-based restricted stock units granted | | | | | 7,095,461 | | | | | | | |
2003 Stock and 2011 Imperva Stock Option and Incentive Plans [Member] | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | |
Intrinsic value of options exercised | $ | | | | | | | | | | | $ 1,100,000 | |
Compensation cost related to unvested stock-based awards granted, but not yet recognized | $ | | | | | | | | $ 102,700,000 | | | $ 102,700,000 | |
Nonvested awards, compensation cost not yet recognized, period for recognition | | | | | | | | | | | 3 years 1 month 6 days | |