.htaccess block outside access on local server except for certain URL's
snippet in htaccess

.htaccess block outside access on local server except for certain URL's

user5898

RewriteEngine On

RewriteCond %{THE_REQUEST} !/paypal_ipn [NC]
RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1
RewriteRule ^ - [F]