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
How to Password Protect One File
Apache
0
0
1644
.htaccess - redirection to www host
Apache
0
2
946
Enable / Disable WWW
Apache
0
4
1207
Wordpress speed Cache-Control
Apache
0
2
1775
Cache for PageSpeed Insights
Apache
0
1
1544
Import files which are more than 10mb
Apache
0
0
1523
Apache: CSS Compession Gzip
Apache
0
1
1653
Apache: JS Compession Gzip
Apache
0
2
1643
block proxy servers from site access
Apache
0
0
1369
protects your site from many Vulnerability Scanners, Search Engines, Crawlers
Apache
0
3
1613
redireccionar301
Apache
0
0
2216
delIndexCodeigniter
Apache
0
0
1092
How to get xdebug var_dump to show full object/array
Apache
0
1
1871
Redirect Website IP and Non-WWW to Proper Address
Apache
0
3
1357
HTACCESS password protect site
Apache
0
2
1091
Using www or no in a website (.htaccess)
Apache
0
1
1018
Apache WordPress - Disable XMLRPC from .htaccess
Apache
0
4
1632
.HTACCESS - Redirect Everyone Except IP address to alternate page
Apache
0
2
1633
.HTACCESS - Administrator Email for ErrorDocument
Apache
0
4
1604
.HTACCESS - Force "File Save As" Prompt
Apache
0
3
1688