Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
Sort
Popular
Most liked
Most recent
Time
Today
Last week
Last month
Last year
All time
Select Languages
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
ColdFusion
Command
CSS
Delphi
Django
Grunt
Gulp
HAML
HTML
iOS
Jade
Java
JavaScript
jQuery
Less
MySQL
Objective
Other
Pascal
Perl
PHP
PowerShell
Processing
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
Smarty
SQL
Swift
VHDL
XHTML
XML
Xojo
XSLT
SCSS
CoffeeScript
GLSL
Progress
Stylus
ES6
Coffee
TypeScript
X++
Haskell
SmallBASIC
JSX
SVG
Plain text
LUA
MDX
Apply
Reset
popular • Apache
Deny Access to Backup and Source Files - .htaccess
Apache
1
1
1322
Disable Directory Browsing - .htaccess
Apache
0
1
1284
Disable Image Hotlinking - .htaccess
Apache
0
2
1352
Password Protect a File or Several Files - .htaccess
Apache
0
1
1340
Compress Text Files - .htaccess
Apache
0
2
1573
Set Expires Headers - .htaccess
Apache
1
1
1529
Turn eTags Off - .htaccess
Apache
1
1
1425
Custom Error Pages - .htaccess
Apache
0
3
1340
Force Downloading - .htaccess
Apache
3
4
1794
Prevent Downloading - .htaccess
Apache
1
2
1358
Allow Cross-Domain Fonts - .htaccess
Apache
1
1
1545
Auto UTF-8 Encode - .htaccess
Apache
1
2
1497
Switch to Another PHP Version - .htaccess
Apache
1
4
1827
Change your Default Timezone - .htaccess
Apache
0
1
1427
Block a country for your site - .htaccess
Apache
0
0
1708
Prevent access to a specific file - .htaccess
Apache
0
2
1429
All errors .htaccess
Apache
1
1
1360
No errors
Apache
0
0
1399
Set Expires Headers
Apache
0
0
1393
Force Downloading
Apache
0
0
1334