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
Compress Text Files
Apache
0
0
1083
Browser Cache (HTACCESS)
Apache
0
0
877
Serve WebP Images - .htaccess
Apache
0
0
2350
Disable Internet Explorer Compatibility View - .htaccess
Apache
0
1
1357
Block Visitors by Referrer - .htaccess
Apache
0
2
1100
Password Protect a File or Several Files - .htaccess
Apache
0
1
1073
Password Protect a Directory - .htaccess
Apache
0
3
1131
Disable Image Hotlinking for Specific Domains - .htaccess
Apache
0
0
1129
Disable Image Hotlinking - .htaccess
Apache
0
4
1235
Deny Access to Backup and Source Files - .htaccess
Apache
0
3
1282
Block author scans - .htaccess
Apache
0
0
1455
Denial of Service Attack (DDoS) Protection - .htaccess
Apache
0
7
2999
Auto redirect to www subdomain - .htaccess
Apache
0
0
1195
Dynamic Virtual Hosting Configuration
Apache
0
5
1610
htaccess fun
Apache
0
3
2022
gzip .htaccess
Apache
0
1
1220
404
Apache
0
0
1247
301
Apache
0
0
1233
logout .htpasswd
Apache
0
0
1386
Creates a new .htpasswd
Apache
0
0
1152